My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/python-crfsuite/default.nix

37 lines
703 B

{ 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
'';
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;
};
}