Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-crfsuite / default.nix
blob2efaa484fd74d9e6ba407f3454d8a9e406606910
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonAtLeast
6 }:
8 buildPythonPackage rec {
9   pname = "python-crfsuite";
10   version = "0.9.9";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-yqYmHWlVRmdW+Ya3/PvU/VBiKWPjvbXMGAwSnGKzp20=";
16   };
18   preCheck = ''
19     # make sure import the built version, not the source one
20     rm -r pycrfsuite
21   '';
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   pythonImportsCheck = [
28     "pycrfsuite"
29   ];
31   meta = with lib; {
32     description = "Python binding for CRFsuite";
33     homepage = "https://github.com/scrapinghub/python-crfsuite";
34     license = licenses.mit;
35     maintainers = teams.tts.members;
36   };