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";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.9.4";
|
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;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-smwPKZLevolNvpkLxoFR3NGL9YFPlBk3WYQqJXBaS7s=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|