Merge pull request #105078 from urbas/py-air-control

This commit is contained in:
Sandro 2020-12-03 17:51:44 +01:00 committed by GitHub
commit 879cea8af4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 5 deletions

View file

@ -1,19 +1,26 @@
{ buildPythonPackage, cachetools, fetchPypi, lib }:
{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }:
buildPythonPackage rec {
pname = "CoAPthon3";
version = "1.0.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1w6bwwd3qjp4b4fscagqg9wqxpdgvf4sxgzbk2d2rjqwlkyr1lnx";
src = fetchFromGitHub {
owner = "Tanganelli";
repo = pname;
rev = version;
sha256 = "1im35i5i72y1p9qj8ixkwq7q6ksbrmi42giqiyfgjp1ym38snl69";
};
propagatedBuildInputs = [ cachetools ];
# tests take in the order of 10 minutes to execute and sometimes hang forever on tear-down
doCheck = false;
pythonImportsCheck = [ "coapthon" ];
meta = with lib; {
inherit (src.meta) homepage;
description = "Python3 library to the CoAP protocol compliant with the RFC.";
homepage = "https://github.com/Tanganelli/${pname}";
license = licenses.mit;
maintainers = with maintainers; [ urbas ];
};

View file

@ -0,0 +1,27 @@
{ buildPythonPackage, coapthon3, fetchFromGitHub, isPy27, lib, pycryptodomex }:
buildPythonPackage rec {
pname = "py-air-control";
version = "2.1.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "rgerganov";
repo = pname;
rev = "v${version}";
sha256 = "0mkggl5hwmj90djxbbz4svim6iv7xl8k324cb4rlc75p5rgcdwmh";
};
propagatedBuildInputs = [ pycryptodomex coapthon3 ];
# tests sometimes hang forever on tear-down
doCheck = false;
pythonImportsCheck = [ "pyairctrl" ];
meta = with lib; {
inherit (src.meta) homepage;
description = "Command Line App for Controlling Philips Air Purifiers.";
license = licenses.mit;
maintainers = with maintainers; [ urbas ];
};
}

View file

@ -4847,6 +4847,8 @@ in {
pxml = callPackage ../development/python-modules/pxml { };
py-air-control = callPackage ../development/python-modules/py-air-control { };
py2bit = callPackage ../development/python-modules/py2bit { };
py3buddy = toPythonModule (callPackage ../development/python-modules/py3buddy { });