Merge pull request #127555 from fabaff/pypca

This commit is contained in:
Sandro 2021-06-20 18:29:26 +02:00 committed by GitHub
commit 98ab358556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 1 deletions

View file

@ -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 ];
};
}

View file

@ -216,7 +216,7 @@
"elgato" = ps: with ps; [ elgato ];
"eliqonline" = ps: with ps; [ ]; # missing inputs: eliqonline
"elkm1" = ps: with ps; [ ]; # missing inputs: elkm1-lib
"elv" = ps: with ps; [ ]; # missing inputs: pypca
"elv" = ps: with ps; [ pypca ];
"emby" = ps: with ps; [ pyemby ];
"emoncms" = ps: with ps; [ ];
"emoncms_history" = ps: with ps; [ ];

View file

@ -6244,6 +6244,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 { };