Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 43 lines 793 B view raw
1{ lib 2, argcomplete 3, buildPythonPackage 4, fetchFromGitHub 5, mock 6, pytestCheckHook 7, requests 8, responses 9, urllib3 10}: 11 12buildPythonPackage rec { 13 pname = "amcrest"; 14 version = "1.7.2"; 15 16 src = fetchFromGitHub { 17 owner = "tchellomello"; 18 repo = "python-amcrest"; 19 rev = version; 20 sha256 = "06gbrshf6vqvq3k813d1w37k2kmps0g6msa4lp2f9xvzw3iczshy"; 21 }; 22 23 propagatedBuildInputs = [ 24 argcomplete 25 requests 26 urllib3 27 ]; 28 29 checkInputs = [ 30 mock 31 pytestCheckHook 32 responses 33 ]; 34 35 pythonImportsCheck = [ "amcrest" ]; 36 37 meta = with lib; { 38 description = "Python module for Amcrest and Dahua Cameras"; 39 homepage = "https://github.com/tchellomello/python-amcrest"; 40 license = with licenses; [ gpl2Only ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}