From 529811ddcb732720ace1f0ebe5da77f15c05a277 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Apr 2021 00:57:19 +0200 Subject: [PATCH] python3Packages.screenlogicpy: init at 0.3.0 --- .../python-modules/screenlogicpy/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/screenlogicpy/default.nix diff --git a/pkgs/development/python-modules/screenlogicpy/default.nix b/pkgs/development/python-modules/screenlogicpy/default.nix new file mode 100644 index 000000000000..100c487acee6 --- /dev/null +++ b/pkgs/development/python-modules/screenlogicpy/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "screenlogicpy"; + version = "0.3.0"; + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "0gn2mf2n2g1ffdbijrydgb7dgd60lkvckblx6s86kxlkrp1wqgrq"; + }; + + # Project doesn't publish tests + # https://github.com/dieselrabbit/screenlogicpy/issues/8 + doCheck = false; + pythonImportsCheck = [ "screenlogicpy" ]; + + meta = with lib; { + description = "Python interface for Pentair Screenlogic devices"; + homepage = "https://github.com/dieselrabbit/screenlogicpy"; + license = with licenses; [ gpl3Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 10da6e1f33ca..35a4bf853194 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7534,6 +7534,8 @@ in { screeninfo = callPackage ../development/python-modules/screeninfo { }; + screenlogicpy = callPackage ../development/python-modules/screenlogicpy { }; + scripttest = callPackage ../development/python-modules/scripttest { }; scs = callPackage ../development/python-modules/scs { scs = pkgs.scs; };