2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, argcomplete
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
2021-09-18 10:52:07 +00:00
|
|
|
, httpx
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2021-08-05 21:33:18 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, urllib3
|
2021-08-05 21:33:18 +00:00
|
|
|
, typing-extensions
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amcrest";
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "1.9.3";
|
2021-08-05 21:33:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tchellomello";
|
|
|
|
repo = "python-amcrest";
|
|
|
|
rev = version;
|
2021-09-22 15:38:15 +00:00
|
|
|
sha256 = "0f9l8xbn40xwx2zzssx5qmkpmv82j6syj8ncnmm6z9dc5wpr6sw7";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
argcomplete
|
2021-09-18 10:52:07 +00:00
|
|
|
httpx
|
2021-02-05 17:12:51 +00:00
|
|
|
requests
|
|
|
|
urllib3
|
2021-08-05 21:33:18 +00:00
|
|
|
typing-extensions
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|