python3Packages.broadlink: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-20 10:45:17 +01:00 committed by GitHub
parent 512404e0e4
commit 216d21499a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,22 +2,26 @@
, buildPythonPackage
, fetchPypi
, cryptography
, pythonOlder
}:
buildPythonPackage rec {
pname = "broadlink";
version = "0.18.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-KMfL1mY4th87gjPrdhvzQjdXucgwSChsykOCO3cPAD8=";
hash = "sha256-KMfL1mY4th87gjPrdhvzQjdXucgwSChsykOCO3cPAD8=";
};
propagatedBuildInputs = [
cryptography
];
# no tests available
# Module has no tests
doCheck = false;
pythonImportsCheck = [
@ -28,5 +32,6 @@ buildPythonPackage rec {
description = "Python API for controlling Broadlink IR controllers";
homepage = "https://github.com/mjg59/python-broadlink";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}