Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / yalexs / default.nix
blob19d40b4f8051a7dc412b3f50a3ad6bee7a8e8024
1 { lib
2 , aiofiles
3 , aiohttp
4 , aioresponses
5 , aiounittest
6 , buildPythonPackage
7 , ciso8601
8 , fetchFromGitHub
9 , pubnub
10 , pyjwt
11 , pytestCheckHook
12 , python-dateutil
13 , pythonOlder
14 , requests
15 , requests-mock
18 buildPythonPackage rec {
19   pname = "yalexs";
20   version = "1.10.0";
21   format = "setuptools";
23   disabled = pythonOlder "3.9";
25   src = fetchFromGitHub {
26     owner = "bdraco";
27     repo = pname;
28     rev = "refs/tags/v${version}";
29     hash = "sha256-7LFKqC8IHzXKKU5Pw6Qud9jqJFc0lSEJFn636T6CsfQ=";
30   };
32   propagatedBuildInputs = [
33     aiofiles
34     aiohttp
35     ciso8601
36     pubnub
37     pyjwt
38     python-dateutil
39     requests
40   ];
42   nativeCheckInputs = [
43     aioresponses
44     aiounittest
45     pytestCheckHook
46     requests-mock
47   ];
49   postPatch = ''
50     # Not used requirement
51     substituteInPlace setup.py \
52       --replace '"vol",' ""
53   '';
55   pythonImportsCheck = [
56     "yalexs"
57   ];
59   meta = with lib; {
60     description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell";
61     homepage = "https://github.com/bdraco/yalexs";
62     changelog = "https://github.com/bdraco/yalexs/releases/tag/v${version}";
63     license = with licenses; [ mit ];
64     maintainers = with maintainers; [ fab ];
65   };