From f038416b9e277c28bb5c1490bd743873faf83975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 23 Jun 2021 19:39:03 +0200 Subject: [PATCH] python3Packages.pyisy: init at 3.0.0 --- .../python-modules/pyisy/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/pyisy/default.nix diff --git a/pkgs/development/python-modules/pyisy/default.nix b/pkgs/development/python-modules/pyisy/default.nix new file mode 100644 index 000000000000..046cfdae9af1 --- /dev/null +++ b/pkgs/development/python-modules/pyisy/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, python-dateutil +, aiohttp +}: + +buildPythonPackage rec { + pname = "pyisy"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "automicus"; + repo = "PyISY"; + rev = "v${version}"; + sha256 = "1bxp13m83qm1n1ddyw6mdz0ijfksjg4ki85w4n8i597f3xazm8q4"; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "setuptools-git-version" "" \ + --replace 'version_format="{tag}"' 'version="${version}"' + ''; + + propagatedBuildInputs = [ + aiohttp + python-dateutil + requests + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "pyisy" ]; + + meta = with lib; { + description = "Python module to talk to ISY994 from UDI"; + homepage = "https://github.com/automicus/PyISY"; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a61f1273190b..d28c25dd1e88 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5291,6 +5291,8 @@ in { pyhiveapi = callPackage ../development/python-modules/pyhiveapi { }; + pyisy = callPackage ../development/python-modules/pyisy { }; + pynndescent = callPackage ../development/python-modules/pynndescent { }; pynobo = callPackage ../development/python-modules/pynobo { };