diff options
Diffstat (limited to 'pkgs/development/python-modules/cymem/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cymem/default.nix | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/cymem/default.nix b/pkgs/development/python-modules/cymem/default.nix index f168ea39a3719..52e24928ec229 100644 --- a/pkgs/development/python-modules/cymem/default.nix +++ b/pkgs/development/python-modules/cymem/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools , cython , pytestCheckHook , pythonOlder @@ -9,7 +10,7 @@ buildPythonPackage rec { pname = "cymem"; version = "2.0.8"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -20,7 +21,8 @@ buildPythonPackage rec { hash = "sha256-e4lgV39lwC2Goqmd8Jjra+znuCpxsv2IsRXfFbQkGN8="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools cython ]; @@ -29,13 +31,9 @@ buildPythonPackage rec { ]; preCheck = '' - TEMPDIR=$(mktemp -d) - cp -R cymem/tests $TEMPDIR/ - pushd $TEMPDIR - ''; - - postCheck = '' - popd + # remove src module, so tests use the installed module instead + mv ./cymem/tests ./tests + rm -r ./cymem ''; pythonImportsCheck = [ @@ -47,6 +45,6 @@ buildPythonPackage rec { homepage = "https://github.com/explosion/cymem"; changelog = "https://github.com/explosion/cymem/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ nickcao ]; }; } |