anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / aioemonitor / default.nix
bloba9fcde7fb79afcfe97851aef5e0edbc118c93480
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pytest-asyncio,
8   pytest-raises,
9   pytestCheckHook,
10   pythonOlder,
11   xmltodict,
14 buildPythonPackage rec {
15   pname = "aioemonitor";
16   version = "1.0.5";
17   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "bdraco";
22     repo = pname;
23     rev = "v${version}";
24     sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
25   };
27   propagatedBuildInputs = [
28     aiohttp
29     xmltodict
30   ];
32   nativeCheckInputs = [
33     aioresponses
34     pytest-asyncio
35     pytest-raises
36     pytestCheckHook
37   ];
39   postPatch = ''
40     substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
41   '';
43   pythonImportsCheck = [ "aioemonitor" ];
45   meta = with lib; {
46     description = "Python client for SiteSage Emonitor";
47     mainProgram = "my_example";
48     homepage = "https://github.com/bdraco/aioemonitor";
49     license = with licenses; [ asl20 ];
50     maintainers = with maintainers; [ fab ];
51   };