mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #225039 from bcdarwin/python3-kornia
python310Packages.kornia: init at 0.6.11
This commit is contained in:
commit
b43e3e5d30
54
pkgs/development/python-modules/kornia/default.nix
Normal file
54
pkgs/development/python-modules/kornia/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, packaging
|
||||
, torch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kornia";
|
||||
version = "0.6.11";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-APqITIt2P+16qp27dwLoAq9vY5CYpd49IWfYHTcZTSI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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.testing"
|
||||
"kornia.utils"
|
||||
];
|
||||
|
||||
doCheck = false; # tests hang with no single test clearly responsible
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://kornia.github.io/kornia";
|
||||
description = "Differentiable computer vision library";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
@ -5337,6 +5337,8 @@ self: super: with self; {
|
||||
|
||||
korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { };
|
||||
|
||||
kornia = callPackage ../development/python-modules/kornia { };
|
||||
|
||||
krakenex = callPackage ../development/python-modules/krakenex { };
|
||||
|
||||
kubernetes = callPackage ../development/python-modules/kubernetes { };
|
||||
|
Loading…
Reference in New Issue
Block a user