blob: e436b599d95d135e4810020e4bd654c9801edb56 (
plain) (
blame)
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
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
httpx,
pytestCheckHook,
pythonOlder,
respx,
}:
buildPythonPackage rec {
pname = "iaqualink";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "flz";
repo = "iaqualink-py";
rev = "v${version}";
hash = "sha256-ewPP2Xq+ecZGc5kokvLEsRokGqTWlymrzkwk480tapk=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [ httpx ] ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [
pytestCheckHook
respx
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "pytest --cov-config=pyproject.toml --cov-report=xml --cov-report=term --cov=src --cov=tests" ""
'';
pythonImportsCheck = [ "iaqualink" ];
meta = with lib; {
description = "Python library for Jandy iAqualink";
homepage = "https://github.com/flz/iaqualink-py";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
|