ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pyisy / default.nix
blobf6f812b96f862406077eca8e6177a274d889ce52
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , python-dateutil
6 , aiohttp
7 }:
9 buildPythonPackage rec {
10   pname = "pyisy";
11   version = "3.0.8";
13   src = fetchFromGitHub {
14     owner = "automicus";
15     repo = "PyISY";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-Q3KewvZJMq4YKrpS6ir5rqZkDhxGACDIhlbr3b6lDAs=";
18   };
20   postPatch = ''
21     substituteInPlace setup.py \
22       --replace "setuptools-git-version" "" \
23       --replace 'version_format="{tag}"' 'version="${version}"'
24   '';
26   propagatedBuildInputs = [
27     aiohttp
28     python-dateutil
29     requests
30   ];
32   # no tests implemented
33   doCheck = false;
35   pythonImportsCheck = [ "pyisy" ];
37   meta = with lib; {
38     description = "Python module to talk to ISY994 from UDI";
39     homepage = "https://github.com/automicus/PyISY";
40     license = licenses.asl20;
41     maintainers = with maintainers; [ dotlambda ];
42   };