2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
packaging,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
torch,
|
|
|
|
kornia-rs,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kornia";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.7.3";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-iEg27b2JVLtAYLFncaSqIh5FyvmmitKAKP7Tl0WWNdk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
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"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # tests hang with no single test clearly responsible
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://kornia.readthedocs.io";
|
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";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
}
|