python310Packages.pynobo: disable on older Python relleases

main
Fabian Affolter 2 years ago committed by GitHub
parent 91290ad711
commit 897b8fa5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      pkgs/development/python-modules/pynobo/default.nix

@ -1,26 +1,32 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pynobo"; pname = "pynobo";
version = "1.5.0"; version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "echoromeo"; owner = "echoromeo";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-msJClYHljib8sATooI8q4irz6cC8hEgvcxLmmgatvwU="; hash = "sha256-msJClYHljib8sATooI8q4irz6cC8hEgvcxLmmgatvwU=";
}; };
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "pynobo" ]; pythonImportsCheck = [
"pynobo"
];
meta = with lib; { 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"; homepage = "https://github.com/echoromeo/pynobo";
license = with licenses; [ gpl3Plus ]; license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];

Loading…
Cancel
Save