Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 77 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ 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 ]; };}