nixpkgs-suyu/pkgs/development/python-modules/amcrest/default.nix
Fabian Affolter 2d239fa2f6
python311Packages.amcrest: add changelog
- update disabled
2023-09-13 22:55:21 +02:00

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