python311Packages.kornia-rs: unbreak darwin with libiconv

This commit is contained in:
annalee 2024-05-10 10:27:12 +00:00
parent 0838b0dadc
commit 35b4f9db08
No known key found for this signature in database

View file

@ -1,10 +1,12 @@
{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, rustPlatform
, cmake
, nasm
, substituteAll
, libiconv
}:
buildPythonPackage rec {
@ -26,6 +28,8 @@ buildPythonPackage rec {
nasm # Only for dependencies.
];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
cargoRoot = "py-kornia";
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;