nautilus: fix cross compilation (#373662)
[NixPkgs.git] / pkgs / development / python-modules / pyduke-energy / default.nix
blobc65acc773e2dd06097e94861e0a5ea6d8779e8a8
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   jsonpickle,
7   paho-mqtt,
8   pytest-asyncio,
9   pytest-timeout,
10   pytestCheckHook,
11   python-dateutil,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "pyduke-energy";
17   version = "1.0.6";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "mjmeli";
24     repo = pname;
25     tag = "v${version}";
26     hash = "sha256-7KkUpsHg3P2cF0bVl3FzyAQwzeaCmg+vzRHlM/TIcNA=";
27   };
29   propagatedBuildInputs = [
30     aiohttp
31     jsonpickle
32     paho-mqtt
33     python-dateutil
34   ];
36   nativeCheckInputs = [
37     pytest-asyncio
38     pytest-timeout
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [ "pyduke_energy" ];
44   meta = with lib; {
45     description = "Python module for the Duke Energy API";
46     homepage = "https://github.com/mjmeli/pyduke-energy";
47     changelog = "https://github.com/mjmeli/pyduke-energy/releases/tag/v${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ fab ];
50   };