depot/third_party/nixpkgs/pkgs/development/python-modules/python-crfsuite/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

36 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "python-crfsuite";
version = "0.9.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1ryfcdfpqbrf8rcd2rlay2gfiba3px3q508543jf81shrv93hi9v";
};
preCheck = ''
# make sure import the built version, not the source one
rm -r pycrfsuite
'';
checkInputs = [
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;
};
}