Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pywaterkotte / default.nix
blob43f276a2df825f7cfc3819397d0ed383bb50fdd7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 , responses
9 }:
11 buildPythonPackage rec {
12   pname = "pywaterkotte";
13   version = "0.1.2";
14   format = "pyproject";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "chboland";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-zK0x6LyXPPNPA20Zq+S1B1q7ZWGxQmWf4JxEfjNkPQw=";
23   };
25   nativeBuildInputs = [
26     hatchling
27   ];
29   propagatedBuildInputs = [
30     requests
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35     responses
36   ];
38   pythonImportsCheck = [
39     "pywaterkotte"
40   ];
42   meta = with lib; {
43     description = "Library to communicate with Waterkotte heatpumps";
44     homepage = "https://github.com/chboland/pywaterkotte";
45     changelog = "https://github.com/chboland/pywaterkotte/releases/tag/v${version}";
46     license = with licenses; [ mit ];
47     maintainers = with maintainers; [ fab ];
48   };