a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
37 lines
709 B
Nix
37 lines
709 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-crfsuite";
|
|
version = "0.9.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-DgPPbro2KHF8zwbfoPSiuoYohgrbF0y/0lCnpGkoZaE=";
|
|
};
|
|
|
|
preCheck = ''
|
|
# make sure import the built version, not the source one
|
|
rm -r pycrfsuite
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pycrfsuite"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python binding for CRFsuite";
|
|
homepage = "https://github.com/scrapinghub/python-crfsuite";
|
|
license = licenses.mit;
|
|
maintainers = teams.tts.members;
|
|
};
|
|
}
|