depot/third_party/nixpkgs/pkgs/development/python-modules/pynobo/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

34 lines
709 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pynobo";
version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "echoromeo";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-YbQfdOLO1gs7+oiwe4rDmmD1o7MG+vma5xPlrtNZ00M=";
};
# 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";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}