depot/third_party/nixpkgs/pkgs/development/python-modules/amcrest/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

43 lines
793 B
Nix

{ lib
, argcomplete
, buildPythonPackage
, fetchFromGitHub
, mock
, pytestCheckHook
, requests
, responses
, urllib3
}:
buildPythonPackage rec {
pname = "amcrest";
version = "1.7.2";
src = fetchFromGitHub {
owner = "tchellomello";
repo = "python-amcrest";
rev = version;
sha256 = "06gbrshf6vqvq3k813d1w37k2kmps0g6msa4lp2f9xvzw3iczshy";
};
propagatedBuildInputs = [
argcomplete
requests
urllib3
];
checkInputs = [
mock
pytestCheckHook
responses
];
pythonImportsCheck = [ "amcrest" ];
meta = with lib; {
description = "Python module for Amcrest and Dahua Cameras";
homepage = "https://github.com/tchellomello/python-amcrest";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ fab ];
};
}