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