2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, packaging
|
|
|
|
, torch
|
2024-05-15 15:35:15 +00:00
|
|
|
, kornia-rs
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kornia";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.7.2";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-DmXttvKoLqny0mt3SUonidNxDkNX7N0LdTxy/H32R/4=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
kornia-rs
|
2023-04-29 16:46:19 +00:00
|
|
|
packaging
|
|
|
|
torch
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"kornia"
|
|
|
|
"kornia.augmentation"
|
|
|
|
"kornia.color"
|
|
|
|
"kornia.contrib"
|
|
|
|
"kornia.enhance"
|
|
|
|
"kornia.feature"
|
|
|
|
"kornia.filters"
|
|
|
|
"kornia.geometry"
|
|
|
|
"kornia.io"
|
|
|
|
"kornia.losses"
|
|
|
|
"kornia.metrics"
|
|
|
|
"kornia.morphology"
|
|
|
|
"kornia.tracking"
|
|
|
|
"kornia.utils"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # tests hang with no single test clearly responsible
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://kornia.github.io/kornia";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/kornia/kornia/releases/tag/v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
description = "Differentiable computer vision library";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|