at 25.11-pre 1.4 kB view raw
1{ 2 lib, 3 argcomplete, 4 buildPythonPackage, 5 fetchFromGitHub, 6 fetchpatch2, 7 httpx, 8 mock, 9 pytestCheckHook, 10 requests, 11 responses, 12 setuptools, 13 typing-extensions, 14 urllib3, 15}: 16 17buildPythonPackage rec { 18 pname = "amcrest"; 19 version = "1.9.8"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "tchellomello"; 24 repo = "python-amcrest"; 25 tag = version; 26 hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w="; 27 }; 28 29 patches = [ 30 (fetchpatch2 { 31 # https://github.com/tchellomello/python-amcrest/pull/235 32 name = "replace-distutils.patch"; 33 url = "https://github.com/tchellomello/python-amcrest/commit/ec56049c0f5b49bc4c5bcf0acb7fea89ec1c1df4.patch"; 34 hash = "sha256-ym+Bn795y+JqhNMk4NPnOVr3DwO9DkUV0d9LEaz3CMo="; 35 }) 36 ]; 37 38 build-system = [ setuptools ]; 39 40 dependencies = [ 41 argcomplete 42 httpx 43 requests 44 urllib3 45 typing-extensions 46 ]; 47 48 nativeCheckInputs = [ 49 mock 50 pytestCheckHook 51 responses 52 ]; 53 54 pythonImportsCheck = [ "amcrest" ]; 55 56 meta = with lib; { 57 description = "Python module for Amcrest and Dahua Cameras"; 58 homepage = "https://github.com/tchellomello/python-amcrest"; 59 changelog = "https://github.com/tchellomello/python-amcrest/releases/tag/${version}"; 60 license = licenses.gpl2Only; 61 maintainers = with maintainers; [ fab ]; 62 }; 63}