Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / aioemonitor / default.nix
blobe78cb83b3f4c8955ad867338f1871deefa1e3d49
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   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "bdraco";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     xmltodict
28   ];
30   checkInputs = [
31     aioresponses
32     pytest-asyncio
33     pytest-raises
34     pytestCheckHook
35   ];
37   postPatch = ''
38     substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
39   '';
41   pythonImportsCheck = [ "aioemonitor" ];
43   meta = with lib; {
44     description = "Python client for SiteSage Emonitor";
45     homepage = "https://github.com/bdraco/aioemonitor";
46     license = with licenses; [ asl20 ];
47     maintainers = with maintainers; [ fab ];
48   };