Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / amcrest / default.nix
blob1de7da6f829fcb744ea094bc3ec4883dc35b91a5
1 { lib
2 , argcomplete
3 , buildPythonPackage
4 , fetchFromGitHub
5 , mock
6 , httpx
7 , pytestCheckHook
8 , pythonOlder
9 , requests
10 , responses
11 , urllib3
12 , typing-extensions
15 buildPythonPackage rec {
16   pname = "amcrest";
17   version = "1.9.8";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "tchellomello";
24     repo = "python-amcrest";
25     rev = "refs/tags/${version}";
26     hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w=";
27   };
29   propagatedBuildInputs = [
30     argcomplete
31     httpx
32     requests
33     urllib3
34     typing-extensions
35   ];
37   nativeCheckInputs = [
38     mock
39     pytestCheckHook
40     responses
41   ];
43   pythonImportsCheck = [
44     "amcrest"
45   ];
47   meta = with lib; {
48     description = "Python module for Amcrest and Dahua Cameras";
49     homepage = "https://github.com/tchellomello/python-amcrest";
50     changelog = "https://github.com/tchellomello/python-amcrest/releases/tag/${version}";
51     license = with licenses; [ gpl2Only ];
52     maintainers = with maintainers; [ fab ];
53   };