nixpkgs/pkgs/development/python-modules/pynobo/default.nix
2023-02-17 00:30:15 +01:00

36 lines
789 B
Nix

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