biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pyisy / default.nix
blob1409c6525a6b361e8f6f7c5d1b7b36dbea21e1d7
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   colorlog,
6   fetchFromGitHub,
7   python-dateutil,
8   pythonOlder,
9   requests,
10   setuptools-scm,
13 buildPythonPackage rec {
14   pname = "pyisy";
15   version = "3.1.14";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "automicus";
22     repo = "PyISY";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-OvWdKr8RlXRnAUMHSPhJDacvKeRa8QGPmGPQWLG2ouk=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace 'version_format="{tag}"' 'version="${version}"'
30   '';
32   nativeBuildInputs = [ setuptools-scm ];
34   propagatedBuildInputs = [
35     aiohttp
36     colorlog
37     python-dateutil
38     requests
39   ];
41   # no tests implemented
42   doCheck = false;
44   pythonImportsCheck = [ "pyisy" ];
46   meta = with lib; {
47     description = "Python module to talk to ISY994 from UDI";
48     homepage = "https://github.com/automicus/PyISY";
49     changelog = "https://github.com/automicus/PyISY/releases/tag/v${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ dotlambda ];
52   };