d9e13ed064
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
49 lines
899 B
Nix
49 lines
899 B
Nix
{ lib
|
|
, argcomplete
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, httpx
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, responses
|
|
, urllib3
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amcrest";
|
|
version = "1.9.3";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tchellomello";
|
|
repo = "python-amcrest";
|
|
rev = version;
|
|
sha256 = "0f9l8xbn40xwx2zzssx5qmkpmv82j6syj8ncnmm6z9dc5wpr6sw7";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
argcomplete
|
|
httpx
|
|
requests
|
|
urllib3
|
|
typing-extensions
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|