From af72b540e6b967b7e084996b8af9f97eb445f7fb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Jun 2021 13:57:50 +0200 Subject: [PATCH] python3Packages.pypca: init at 0.0.13 --- .../python-modules/pypca/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/pypca/default.nix diff --git a/pkgs/development/python-modules/pypca/default.nix b/pkgs/development/python-modules/pypca/default.nix new file mode 100644 index 000000000000..86adb4e3e14a --- /dev/null +++ b/pkgs/development/python-modules/pypca/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, colorlog +, fetchPypi +, pythonOlder +, pyserial +}: + +buildPythonPackage rec { + pname = "pypca"; + version = "0.0.13"; + disabled = pythonOlder "3.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl"; + }; + + propagatedBuildInputs = [ + colorlog + pyserial + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "pypca" ]; + + meta = with lib; { + description = "Python library for interacting with the PCA 301 smart plugs"; + homepage = "https://github.com/majuss/pypca"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3c455f41fef..b1b7f2b0c03e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6236,6 +6236,8 @@ in { pypblib = callPackage ../development/python-modules/pypblib { }; + pypca = callPackage ../development/python-modules/pypca { }; + pypcap = callPackage ../development/python-modules/pypcap { }; pypck = callPackage ../development/python-modules/pypck { };