nixpkgs/pkgs/development/python-modules/albucore/default.nix
2024-09-27 00:31:31 +00:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
numpy,
opencv4,
typing-extensions,
}:
buildPythonPackage rec {
pname = "albucore";
version = "0.0.17";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "albumentations-team";
repo = "albucore";
rev = "refs/tags/${version}";
hash = "sha256-9fv5jewfL3JKhZyD0YS1WDNZ7wWt+8iF2DcygCOl168=";
};
pythonRemoveDeps = [ "opencv-python" ];
build-system = [ setuptools ];
dependencies = [
numpy
opencv4
typing-extensions
];
pythonImportsCheck = [ "albucore" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "High-performance image processing library to optimize and extend Albumentations with specialized functions for image transformations";
homepage = "https://github.com/albumentations-team/albucore";
changelog = "https://github.com/albumentations-team/albucore/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}