2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textdistance";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "4.6.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-JYllgBse+FaGppq/bDzv3F2iHC+9iMkMaHJfV6fUXyE=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# There aren't tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"textdistance"
|
|
|
|
];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for comparing distance between two or more sequences";
|
|
|
|
homepage = "https://github.com/life4/textdistance";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/life4/textdistance/releases/tag/${version}";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
}
|