python3Packages.textdistance: migrate to pyproject (#545169)
This commit is contained in:
@@ -2,28 +2,42 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
hypothesis,
|
||||
numpy,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "textdistance";
|
||||
version = "4.6.3";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "textdistance";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-1tq8ULTqgyzc8OHmAhvQx/zZreFViI15u2o8Mfzi3G8=";
|
||||
};
|
||||
|
||||
# There aren't tests
|
||||
doCheck = false;
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
numpy
|
||||
];
|
||||
|
||||
disabledTestPaths = [ "tests/test_external.py" ];
|
||||
|
||||
pythonImportsCheck = [ "textdistance" ];
|
||||
|
||||
meta = {
|
||||
description = "Python library for comparing distance between two or more sequences";
|
||||
homepage = "https://github.com/life4/textdistance";
|
||||
changelog = "https://github.com/life4/textdistance/releases/tag/${version}";
|
||||
changelog = "https://github.com/life4/textdistance/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user