From f0358795ff55575c58346fde261064ddbfea1680 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Mon, 15 Nov 2021 21:42:56 +0000 Subject: [PATCH] python3Packages.johnnycanencrypt: fix build with newer maturin --- .../python-modules/johnnycanencrypt/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/johnnycanencrypt/default.nix b/pkgs/development/python-modules/johnnycanencrypt/default.nix index a8ce23d371f8..2f7921374e75 100644 --- a/pkgs/development/python-modules/johnnycanencrypt/default.nix +++ b/pkgs/development/python-modules/johnnycanencrypt/default.nix @@ -13,6 +13,7 @@ , pytestCheckHook , pythonOlder , PCSC +, libiconv }: buildPythonPackage rec { @@ -55,7 +56,10 @@ buildPythonPackage rec { buildInputs = [ pcsclite nettle - ] ++ lib.optionals stdenv.isDarwin [ PCSC ]; + ] ++ lib.optionals stdenv.isDarwin [ + PCSC + libiconv + ]; # Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage) doCheck = false; @@ -70,6 +74,8 @@ buildPythonPackage rec { # for compatibility with maturin 0.9.0. postPatch = '' sed '/project-url = /d' -i Cargo.toml + substituteInPlace pyproject.toml \ + --replace 'manylinux = "off"' 'skip-auditwheel = true' ''; preCheck = ''