Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonAtLeast, 7}: 8 9buildPythonPackage rec { 10 pname = "python-crfsuite"; 11 version = "0.9.10"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-84UkYx4rUzNB8Q8sd2iScNxuzVmFSV3M96o3sQRbwuU="; 17 }; 18 19 preCheck = '' 20 # make sure import the built version, not the source one 21 rm -r pycrfsuite 22 ''; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "pycrfsuite" ]; 27 28 meta = with lib; { 29 description = "Python binding for CRFsuite"; 30 homepage = "https://github.com/scrapinghub/python-crfsuite"; 31 license = licenses.mit; 32 maintainers = teams.tts.members; 33 }; 34}