Merge pull request #146194 from risicle/ris-johnnycanencrypt-fix

python3Packages.johnnycanencrypt: fix build with newer maturin
This commit is contained in:
Timothy DeHerrera 2021-11-15 18:20:03 -07:00 committed by GitHub
commit 20bcd90328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ''