nixpkgs/pkgs/development/python-modules/amcrest/default.nix
2021-09-18 20:34:03 +02:00

50 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 ];
};
}