python310Packages.doorbirdpy: disable on unsupported Python releases

This commit is contained in:
Fabian Affolter 2023-01-09 08:31:23 +01:00 committed by GitHub
parent 8dbd527896
commit 6414a51b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,20 @@
, buildPythonPackage
, fetchPypi
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "doorbirdpy";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "DoorBirdPy";
inherit version;
sha256 = "sha256-ZGIIko5Ac0Q4Jhz+z7FREJ4MhPF9ADDWgQFRtcZ+dWY=";
hash = "sha256-ZGIIko5Ac0Q4Jhz+z7FREJ4MhPF9ADDWgQFRtcZ+dWY=";
};
propagatedBuildInputs = [
@ -21,7 +25,9 @@ buildPythonPackage rec {
# no tests on PyPI, no tags on GitLab
doCheck = false;
pythonImportsCheck = [ "doorbirdpy" ];
pythonImportsCheck = [
"doorbirdpy"
];
meta = with lib; {
description = "Python wrapper for the DoorBird LAN API";