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
13}:
14
15buildPythonPackage rec {
16 pname = "amcrest";
17 version = "1.9.8";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "tchellomello";
24 repo = "python-amcrest";
25 rev = "refs/tags/${version}";
26 hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w=";
27 };
28
29 propagatedBuildInputs = [
30 argcomplete
31 httpx
32 requests
33 urllib3
34 typing-extensions
35 ];
36
37 nativeCheckInputs = [
38 mock
39 pytestCheckHook
40 responses
41 ];
42
43 pythonImportsCheck = [
44 "amcrest"
45 ];
46
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 };
54}