3087c3879f
Diff: https://github.com/albumentations-team/albucore/compare/refs/tags/0.0.11...0.0.12 Changelog: https://github.com/albumentations-team/albucore/releases/tag/0.0.12
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
numpy,
|
|
opencv4,
|
|
tomli,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "albucore";
|
|
version = "0.0.12";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "albumentations-team";
|
|
repo = "albucore";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-TJTIIshMUcHTGSo0lRA3hVkqMqKsfj0EuiV+SSsP5Q4=";
|
|
};
|
|
|
|
pythonRemoveDeps = [ "opencv-python" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
opencv4
|
|
tomli
|
|
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 ];
|
|
};
|
|
}
|