pythonPackages.pysmf: fix build with python 3.9

This commit is contained in:
J. Neto 2021-05-20 04:17:37 -03:00 committed by Jonathan Ringer
parent f49504d95f
commit 9eafeb243a

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pkg-config, libsmf, glib, pytest }:
{ lib, buildPythonPackage, fetchPypi, pkg-config, libsmf, glib, pytest, cython }:
buildPythonPackage rec {
pname = "pysmf";
@ -9,7 +9,11 @@ buildPythonPackage rec {
sha256 = "10i7vvvdx6c3gl4afsgnpdanwgzzag087zs0fxvfipnqknazj806";
};
nativeBuildInputs = [ pkg-config pytest ];
postUnpack = ''
rm $sourceRoot/src/smf.c
'';
nativeBuildInputs = [ pkg-config pytest cython ];
buildInputs = [ libsmf glib ];
meta = with lib; {