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-03-30 09:31:56 +00:00
|
|
|
version = "1.9.7";
|
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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-An7MnGtZsmEZU/y6E0sivdexFD6HJRTB1juXqHfbDzE=";
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|