blob: 519712568574273b0464c215cce31a5df46ca5b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
httpx,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
respx,
}:
buildPythonPackage rec {
pname = "iaqualink";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "flz";
repo = "iaqualink-py";
tag = "v${version}";
hash = "sha256-s/ZhcbTaCvn7ei1O4+P4fKPojitl+4gsatc9PZx+W2g=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [ httpx ] ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
respx
];
pythonImportsCheck = [ "iaqualink" ];
meta = {
description = "Python library for Jandy iAqualink";
homepage = "https://github.com/flz/iaqualink-py";
changelog = "https://github.com/flz/iaqualink-py/releases/tag/v${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}
|