Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 902 B view raw
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.7"; 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "tchellomello"; 22 repo = "python-amcrest"; 23 rev = version; 24 hash = "sha256-An7MnGtZsmEZU/y6E0sivdexFD6HJRTB1juXqHfbDzE="; 25 }; 26 27 propagatedBuildInputs = [ 28 argcomplete 29 httpx 30 requests 31 urllib3 32 typing-extensions 33 ]; 34 35 nativeCheckInputs = [ 36 mock 37 pytestCheckHook 38 responses 39 ]; 40 41 pythonImportsCheck = [ "amcrest" ]; 42 43 meta = with lib; { 44 description = "Python module for Amcrest and Dahua Cameras"; 45 homepage = "https://github.com/tchellomello/python-amcrest"; 46 license = with licenses; [ gpl2Only ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}