Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aioemonitor / default.nix
blobfeddda5832f2b5287b5c7dc2f755cc383d69163c
1 { lib
2 , aiohttp
3 , aioresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pytest-asyncio
7 , pytest-raises
8 , pytestCheckHook
9 , pythonOlder
10 , xmltodict
13 buildPythonPackage rec {
14   pname = "aioemonitor";
15   version = "1.0.5";
16   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "bdraco";
21     repo = pname;
22     rev = "v${version}";
23     sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     xmltodict
29   ];
31   nativeCheckInputs = [
32     aioresponses
33     pytest-asyncio
34     pytest-raises
35     pytestCheckHook
36   ];
38   postPatch = ''
39     substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
40   '';
42   pythonImportsCheck = [ "aioemonitor" ];
44   meta = with lib; {
45     description = "Python client for SiteSage Emonitor";
46     mainProgram = "my_example";
47     homepage = "https://github.com/bdraco/aioemonitor";
48     license = with licenses; [ asl20 ];
49     maintainers = with maintainers; [ fab ];
50   };