fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
deepdiff,
|
|
numpy,
|
|
opencv4,
|
|
pyyaml,
|
|
scikit-image,
|
|
scikit-learn,
|
|
scipy,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pythonRelaxDepsHook,
|
|
torch,
|
|
torchvision,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "albumentations";
|
|
version = "1.4.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "albumentations-team";
|
|
repo = "albumentations";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7t1+22zzFtkZaAyOo6xjk+MXT9N44PmQ/NRRfvLeRVk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
pythonRemoveDeps = [
|
|
"opencv-python"
|
|
"pydantic"
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
opencv4
|
|
pydantic
|
|
pyyaml
|
|
scikit-image
|
|
scikit-learn
|
|
scipy
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
deepdiff
|
|
pytestCheckHook
|
|
torch
|
|
torchvision
|
|
];
|
|
|
|
disabledTests = [
|
|
# this test hangs up
|
|
"test_transforms"
|
|
];
|
|
|
|
pythonImportsCheck = [ "albumentations" ];
|
|
|
|
meta = with lib; {
|
|
description = "Fast image augmentation library and easy to use wrapper around other libraries";
|
|
homepage = "https://github.com/albumentations-team/albumentations";
|
|
changelog = "https://github.com/albumentations-team/albumentations/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|