fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
943 B
Nix
44 lines
943 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
responses,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pywaterkotte";
|
|
version = "0.1.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chboland";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zK0x6LyXPPNPA20Zq+S1B1q7ZWGxQmWf4JxEfjNkPQw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hatchling ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
pythonImportsCheck = [ "pywaterkotte" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to communicate with Waterkotte heatpumps";
|
|
homepage = "https://github.com/chboland/pywaterkotte";
|
|
changelog = "https://github.com/chboland/pywaterkotte/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|