diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-23 09:52:45 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-23 09:52:45 +0100 |
commit | 002b6599da97f4c004a416f774c473c6a6cac9d0 (patch) | |
tree | 460a2027d93625ac358ab0485de7afac413ac494 /pkgs/development/python-modules/amcrest | |
parent | 4affc40a50dbabf2216176307a507b9225e01be7 (diff) |
python3Packages.amcrest: init at 1.7.2
Diffstat (limited to 'pkgs/development/python-modules/amcrest')
-rw-r--r-- | pkgs/development/python-modules/amcrest/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/amcrest/default.nix b/pkgs/development/python-modules/amcrest/default.nix new file mode 100644 index 0000000000000..772b8fbaa0466 --- /dev/null +++ b/pkgs/development/python-modules/amcrest/default.nix @@ -0,0 +1,43 @@ +{ 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 ]; + }; +} |