depot/third_party/nixpkgs/pkgs/development/python-modules/py_stringmatching/default.nix

44 lines
887 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, nose
, numpy
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "py-stringmatching";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "py_stringmatching";
inherit version;
sha256 = "sha256-khubsWOzEN80HDOCORMgT3sMqfajGfW0UUCDAL03je4=";
};
propagatedBuildInputs = [
numpy
six
];
nativeCheckInputs = [
nose
];
pythonImportsCheck = [
"py_stringmatching"
];
meta = with lib; {
description = "Python string matching library including string tokenizers and string similarity measures";
homepage = "https://github.com/anhaidgroup/py_stringmatching";
changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt";
license = licenses.bsd3;
maintainers = with maintainers; [ ixxie ];
};
}