Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
argcomplete,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
httpx,
|
|
mock,
|
|
pytestCheckHook,
|
|
requests,
|
|
responses,
|
|
setuptools,
|
|
typing-extensions,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amcrest";
|
|
version = "1.9.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tchellomello";
|
|
repo = "python-amcrest";
|
|
tag = version;
|
|
hash = "sha256-UPxs/sL8ZpUf29fpQFnLY4tV7qSQIxm0UVSl6Pm1dAY=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch2 {
|
|
# https://github.com/tchellomello/python-amcrest/pull/240
|
|
name = "distutils-str2bool.patch";
|
|
url = "https://github.com/tchellomello/python-amcrest/commit/9cced67d643da6c33d92e85dde22e01b44fb0936.patch";
|
|
hash = "sha256-i9UeYo43Eiwz06KfWyVQUPTLCJLmMjjNcjA7ZQcPIqQ=";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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/${src.tag}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|