60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
packaging,
|
|
setuptools,
|
|
torch,
|
|
kornia-rs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kornia";
|
|
version = "0.7.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-iEg27b2JVLtAYLFncaSqIh5FyvmmitKAKP7Tl0WWNdk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
kornia-rs
|
|
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 = {
|
|
homepage = "https://kornia.readthedocs.io";
|
|
changelog = "https://github.com/kornia/kornia/releases/tag/v${version}";
|
|
description = "Differentiable computer vision library";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|