diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-03-18 19:59:20 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-03-18 19:59:23 +0100 |
commit | 00e2713c5b3ab43855abe59f0a882453bea69dac (patch) | |
tree | 96516aa9c92aa6ae92fd22ffe7528a21524fb250 /pkgs/development/python-modules/editdistpy/default.nix | |
parent | a0c36b6bff2a53257a8e1e218f976a08a43a585d (diff) | |
parent | b8791b1d70c45d4d6e0a13f40540a795b75c590b (diff) | |
download | nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar.gz nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar.bz2 nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar.lz nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar.xz nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.tar.zst nixlib-00e2713c5b3ab43855abe59f0a882453bea69dac.zip |
Merge remote-tracking branch 'origin/master' into staging-next
Diffstat (limited to 'pkgs/development/python-modules/editdistpy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/editdistpy/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/editdistpy/default.nix b/pkgs/development/python-modules/editdistpy/default.nix new file mode 100644 index 000000000000..5c86f3773bff --- /dev/null +++ b/pkgs/development/python-modules/editdistpy/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub + +, pythonOlder + +, setuptools +, cython_3 +}: + +buildPythonPackage rec { + pname = "editdistpy"; + version = "0.1.3"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "mammothb"; + repo = "editdistpy"; + rev = "refs/tags/v${version}"; + hash = "sha256-4CtKadKpFmlZnz10NG0404oFl9DkdQwWwRSWgUPdh94="; + }; + + build-system = [ + setuptools + cython_3 + ]; + + # for tests need symspellpy package, symspellpy is not in nixpkgs... + doCheck = false; + + pythonImportsCheck = [ + "editdistpy" + ]; + + meta = with lib; + { + description = "Fast Levenshtein and Damerau optimal string alignment algorithms"; + homepage = "https://github.com/mammothb/editdistpy"; + changelog = "https://github.com/mammothb/editdistpy/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ vizid ]; + }; +} |