python310Packages.albumentations: init at 1.3.1

This commit is contained in:
natsukium 2023-07-01 10:59:31 +09:00
parent c60195e154
commit 9d8609e1b9
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, opencv4
, pyyaml
, qudida
, scikit-image
, scipy
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
}:
buildPythonPackage rec {
pname = "albumentations";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-pqODiP5UbFaAcejIL0FEmOhsntA8CLWOeoizHPeiRMY=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRemoveDeps = [
"opencv-python"
];
propagatedBuildInputs = [
numpy
opencv4
pyyaml
qudida
scikit-image
scipy
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}

View File

@ -406,6 +406,8 @@ self: super: with self; {
alarmdecoder = callPackage ../development/python-modules/alarmdecoder { };
albumentations = callPackage ../development/python-modules/albumentations { };
ale-py = callPackage ../development/python-modules/ale-py { };
alectryon = callPackage ../development/python-modules/alectryon { };