python312Packages.albumentations: fix dependencies, fix tests

This commit is contained in:
TomaSajt 2024-05-12 02:09:22 +02:00
parent 9f7053ffc1
commit 11d25281e4
No known key found for this signature in database
GPG Key ID: F011163C050122A1

View File

@ -1,19 +1,21 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, setuptools
, deepdiff
, numpy
, opencv4
, pyyaml
, qudida
, scikit-image
, scikit-learn
, scipy
, deepdiff
, pydantic
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, torch
, torchvision
, typing-extensions
}:
buildPythonPackage rec {
@ -23,9 +25,11 @@ buildPythonPackage rec {
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-VNpClOBdoaQOqU92Mm/Z5Q7P+fZzR+m43SFA9pSi1M0=";
src = fetchFromGitHub {
owner = "albumentations-team";
repo = "albumentations";
rev = "refs/tags/${version}";
hash = "sha256-7t1+22zzFtkZaAyOo6xjk+MXT9N44PmQ/NRRfvLeRVk=";
};
nativeBuildInputs = [
@ -34,6 +38,7 @@ buildPythonPackage rec {
pythonRemoveDeps = [
"opencv-python"
"pydantic"
];
build-system = [
@ -43,10 +48,12 @@ buildPythonPackage rec {
dependencies = [
numpy
opencv4
pydantic
pyyaml
qudida
scikit-image
scikit-learn
scipy
typing-extensions
];
nativeCheckInputs = [