diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/heatzypy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/heatzypy/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/heatzypy/default.nix b/nixpkgs/pkgs/development/python-modules/heatzypy/default.nix new file mode 100644 index 000000000000..a0647d2dd77d --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/heatzypy/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, requests +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "heatzypy"; + version = "1.4.2"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "Cyr-ius"; + repo = pname; + rev = version; + sha256 = "nENuH2u9RtWq86TW/sDFFeYS8GTWGj7qfcFS8AHFRGk="; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "heatzypy" + ]; + + meta = with lib; { + description = "Python module to interact with Heatzy devices"; + homepage = "https://github.com/Cyr-ius/heatzypy"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fab ]; + }; +} |