From 5c3467421452580d000bcc5f1c069db1cd962a0d Mon Sep 17 00:00:00 2001 From: Iwan Date: Sat, 4 Jan 2025 22:36:31 +0100 Subject: [PATCH] python-crfsuite: 0.9.10 -> 0.9.11 Fixes build with GCC 14 thanks to https://github.com/scrapinghub/python-crfsuite/pull/159 Requires building with Cython due to https://github.com/scrapinghub/python-crfsuite/pull/165 --- .../python-modules/python-crfsuite/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/python-crfsuite/default.nix b/pkgs/development/python-modules/python-crfsuite/default.nix index 5debefcbb397..ae56a4e20418 100644 --- a/pkgs/development/python-modules/python-crfsuite/default.nix +++ b/pkgs/development/python-modules/python-crfsuite/default.nix @@ -3,16 +3,18 @@ buildPythonPackage, fetchPypi, pytestCheckHook, + cython, }: buildPythonPackage rec { pname = "python-crfsuite"; - version = "0.9.10"; + version = "0.9.11"; format = "setuptools"; src = fetchPypi { - inherit pname version; - hash = "sha256-84UkYx4rUzNB8Q8sd2iScNxuzVmFSV3M96o3sQRbwuU="; + inherit version; + pname = "python_crfsuite"; + hash = "sha256-bv+WXKcFZzltgiyaNep0sPftsn2UcVJJl72r56baX1o="; }; preCheck = '' @@ -20,6 +22,10 @@ buildPythonPackage rec { rm -r pycrfsuite ''; + build-system = [ + cython + ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pycrfsuite" ];