5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ lib
|
|
, argcomplete
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, httpx
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, urllib3
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amcrest";
|
|
version = "1.9.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tchellomello";
|
|
repo = "python-amcrest";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
argcomplete
|
|
httpx
|
|
requests
|
|
urllib3
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"amcrest"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for Amcrest and Dahua Cameras";
|
|
homepage = "https://github.com/tchellomello/python-amcrest";
|
|
changelog = "https://github.com/tchellomello/python-amcrest/releases/tag/${version}";
|
|
license = with licenses; [ gpl2Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|