python3Packages.johnnycanencrypt: maturin 0.9.0 compatibility fix

This commit is contained in:
Daniël de Kok 2021-01-23 12:03:32 +01:00
parent 02380d7d7c
commit e645c16956

View file

@ -61,6 +61,12 @@ rustPlatform.buildRustPackage rec {
numpy
];
# Remove with the next release after 0.5.0. This change is required
# for compatibility with maturin 0.9.0.
postPatch = ''
sed '/project-url = /d' -i Cargo.toml
'';
buildPhase = ''
runHook preBuild
maturin build --release --manylinux off --strip --cargo-extra-args="-j $NIX_BUILD_CORES --frozen"