python3Packages.johnnycanencrypt: fix build with newer maturin
This commit is contained in:
parent
2d8f84bb56
commit
f0358795ff
1 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, PCSC
|
, PCSC
|
||||||
|
, libiconv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -55,7 +56,10 @@ buildPythonPackage rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pcsclite
|
pcsclite
|
||||||
nettle
|
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)
|
# Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage)
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -70,6 +74,8 @@ buildPythonPackage rec {
|
||||||
# for compatibility with maturin 0.9.0.
|
# for compatibility with maturin 0.9.0.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed '/project-url = /d' -i Cargo.toml
|
sed '/project-url = /d' -i Cargo.toml
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'manylinux = "off"' 'skip-auditwheel = true'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
|
Loading…
Reference in a new issue