3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #110573 from fabaff/amcrest

This commit is contained in:
Sandro 2021-01-23 14:44:58 +01:00 committed by GitHub
commit ef9cd0712e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions

View file

@ -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 ];
};
}

View file

@ -27,7 +27,7 @@
"amazon_polly" = ps: with ps; [ boto3 ];
"ambiclimate" = ps: with ps; [ aiohttp-cors ambiclimate ];
"ambient_station" = ps: with ps; [ ]; # missing inputs: aioambient
"amcrest" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: amcrest
"amcrest" = ps: with ps; [ amcrest ha-ffmpeg ];
"ampio" = ps: with ps; [ ]; # missing inputs: asmog
"android_ip_webcam" = ps: with ps; [ ]; # missing inputs: pydroid-ipcam
"androidtv" = ps: with ps; [ adb-shell androidtv pure-python-adb ];

View file

@ -318,6 +318,8 @@ in {
ambiclimate = callPackage ../development/python-modules/ambiclimate { };
amcrest = callPackage ../development/python-modules/amcrest { };
amply = callPackage ../development/python-modules/amply { };
amqp = callPackage ../development/python-modules/amqp { };