3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.aioharmony: disable on older Python releases

This commit is contained in:
Fabian Affolter 2021-10-18 08:19:41 +02:00 committed by GitHub
parent f9f8b76e11
commit 0066aaba32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,15 @@
, async-timeout
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, slixmpp
}:
buildPythonPackage rec {
pname = "aioharmony";
version = "0.2.8";
disabled = !isPy3k;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
@ -26,7 +27,10 @@ buildPythonPackage rec {
# aioharmony does not seem to include tests
doCheck = false;
pythonImportsCheck = [ "aioharmony.harmonyapi" "aioharmony.harmonyclient" ];
pythonImportsCheck = [
"aioharmony.harmonyapi"
"aioharmony.harmonyclient"
];
meta = with lib; {
homepage = "https://github.com/ehendrix23/aioharmony";