ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyduke-energy / default.nix
blob35ab4e5af83f28eeb67e63ee8ec82bec56257a5a
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , jsonpickle
6 , paho-mqtt
7 , pytest-asyncio
8 , pytest-timeout
9 , pytestCheckHook
10 , python-dateutil
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "pyduke-energy";
16   version = "1.0.2";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "mjmeli";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     sha256 = "sha256-0fxFZQr8Oti17egBvpvE92YsIZ+Jf8gYRh0J2g5WTIc=";
26   };
28   propagatedBuildInputs = [
29     aiohttp
30     jsonpickle
31     paho-mqtt
32     python-dateutil
33   ];
35   checkInputs = [
36     pytest-asyncio
37     pytest-timeout
38     pytestCheckHook
39   ];
41   pythonImportsCheck = [
42     "pyduke_energy"
43   ];
45   meta = with lib; {
46     description = "Python module for the Duke Energy API";
47     homepage = "https://github.com/mjmeli/pyduke-energy";
48     license = licenses.mit;
49     maintainers = with maintainers; [ fab ];
50   };