5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, packaging
|
|
, torch
|
|
, kornia-rs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kornia";
|
|
version = "0.7.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DmXttvKoLqny0mt3SUonidNxDkNX7N0LdTxy/H32R/4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 = with lib; {
|
|
homepage = "https://kornia.github.io/kornia";
|
|
changelog = "https://github.com/kornia/kornia/releases/tag/v${version}";
|
|
description = "Differentiable computer vision library";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|