nixpkgs-suyu/pkgs/development/python-modules/heatzypy/default.nix
2021-12-03 13:00:06 -08:00

40 lines
737 B
Nix

{ 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 ];
};
}