Skip to content

Commit

Permalink
python-crfsuite: 0.9.10 -> 0.9.11
Browse files Browse the repository at this point in the history
Fixes build with GCC 14 thanks to scrapinghub/python-crfsuite#159
Requires building with Cython due to scrapinghub/python-crfsuite#165
  • Loading branch information
iwanb committed Jan 4, 2025
1 parent d84661f commit 5c34674
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/development/python-modules/python-crfsuite/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@
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 = ''
# make sure import the built version, not the source one
rm -r pycrfsuite
'';

build-system = [
cython
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "pycrfsuite" ];
Expand Down

0 comments on commit 5c34674

Please sign in to comment.