From 918ced24330bb12033b67a8e91ce4b6d9ff001f8 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Wed, 31 Jul 2024 12:52:40 -0400 Subject: [PATCH] python312Packages.kornia: fix homepage URL, minor refactor --- .../development/python-modules/kornia/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/kornia/default.nix b/pkgs/development/python-modules/kornia/default.nix index 5c3176db7ced..013ccbd9010f 100644 --- a/pkgs/development/python-modules/kornia/default.nix +++ b/pkgs/development/python-modules/kornia/default.nix @@ -4,6 +4,7 @@ fetchFromGitHub, pythonOlder, packaging, + setuptools, torch, kornia-rs, }: @@ -11,7 +12,7 @@ buildPythonPackage rec { pname = "kornia"; version = "0.7.3"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.8"; @@ -22,7 +23,9 @@ buildPythonPackage rec { hash = "sha256-iEg27b2JVLtAYLFncaSqIh5FyvmmitKAKP7Tl0WWNdk="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ kornia-rs packaging torch @@ -47,11 +50,11 @@ buildPythonPackage rec { doCheck = false; # tests hang with no single test clearly responsible - meta = with lib; { - homepage = "https://kornia.github.io/kornia"; + meta = { + homepage = "https://kornia.readthedocs.io"; changelog = "https://github.com/kornia/kornia/releases/tag/v${version}"; description = "Differentiable computer vision library"; - license = licenses.asl20; - maintainers = with maintainers; [ bcdarwin ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bcdarwin ]; }; }