ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / python-smarttub / default.nix
blobb977bc2d0c20757a2ad1e232f3ad040157eaf864
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , inflection
7 , pyjwt
8 , pytest-asyncio
9 , pytestCheckHook
10 , python-dateutil
11 , pythonOlder
14 buildPythonPackage rec {
15   pname = "python-smarttub";
16   version = "0.0.33";
17   format = "setuptools";
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "mdz";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     sha256 = "sha256-BGG5SQfVxhp6ID2Ob+afm75cInVixSPD5012K4HwthU=";
26   };
28   propagatedBuildInputs = [
29     aiohttp
30     inflection
31     pyjwt
32     python-dateutil
33   ];
35   checkInputs = [
36     aresponses
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   pytestFlagsArray = [
42     "--asyncio-mode=legacy"
43   ];
45   postPatch = ''
46     substituteInPlace setup.py \
47       --replace "pyjwt~=2.1.0" "pyjwt>=2.1.0"
48   '';
50   pythonImportsCheck = [
51     "smarttub"
52   ];
54   meta = with lib; {
55     description = "Python API for SmartTub enabled hot tubs";
56     homepage = "https://github.com/mdz/python-smarttub";
57     license = with licenses; [ mit ];
58     maintainers = with maintainers; [ fab ];
59   };