python310Packages.pynobo: disable on older Python relleases

This commit is contained in:
Fabian Affolter 2022-10-03 08:24:20 +02:00 committed by GitHub
parent 91290ad711
commit 897b8fa5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynobo";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "echoromeo";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-msJClYHljib8sATooI8q4irz6cC8hEgvcxLmmgatvwU=";
hash = "sha256-msJClYHljib8sATooI8q4irz6cC8hEgvcxLmmgatvwU=";
};
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pynobo" ];
pythonImportsCheck = [
"pynobo"
];
meta = with lib; {
description = "Python 3 TCP/IP interface for Nobo Hub/Nobo Energy Control devices";
description = "Python TCP/IP interface for Nobo Hub/Nobo Energy Control devices";
homepage = "https://github.com/echoromeo/pynobo";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];