blob: 877cba843a93cda876a37d4c0bacc34e562706a0 (
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
51
52
53
54
55
|
{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
inflection,
pyjwt,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
pythonOlder,
}:
buildPythonPackage rec {
pname = "python-smarttub";
version = "0.0.38";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mdz";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ErGBOO5aes4Avmt2M6rkZPmjwsCMZdNnLhMDYhlULzU=";
};
propagatedBuildInputs = [
aiohttp
inflection
pyjwt
python-dateutil
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pyjwt~=2.1.0" "pyjwt>=2.1.0"
'';
pythonImportsCheck = [ "smarttub" ];
meta = with lib; {
description = "Python API for SmartTub enabled hot tubs";
homepage = "https://github.com/mdz/python-smarttub";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|