diff --git a/pkgs/development/python-modules/python-levenshtein/default.nix b/pkgs/development/python-modules/python-levenshtein/default.nix new file mode 100644 index 00000000000..7a16621da0a --- /dev/null +++ b/pkgs/development/python-modules/python-levenshtein/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "python-Levenshtein"; + version = "0.12.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"; + }; + + # No tests included in archive + doCheck = false; + + meta = with stdenv.lib; { + description = "Functions for fast computation of Levenshtein distance and string similarity"; + homepage = "https://github.com/ztane/python-Levenshtein"; + license = licenses.gpl2; + maintainers = with maintainers; [ aske ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2ce4f5cb984..80bb7a51a90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5686,25 +5686,7 @@ in { python_openzwave = callPackage ../development/python-modules/python_openzwave { }; - python-Levenshtein = buildPythonPackage rec { - name = "python-Levenshtein-${version}"; - version = "0.12.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/python-Levenshtein/${name}.tar.gz"; - sha256 = "1c9ybqcja31nghfcc8xxbbz9h60s9qi12b9hr4jyl69xbvg12fh3"; - }; - - # No tests included in archive - doCheck = false; - - meta = { - description = "Functions for fast computation of Levenshtein distance and string similarity"; - homepage = "https://github.com/ztane/python-Levenshtein"; - license = licenses.gpl2; - maintainers = with maintainers; [ aske ]; - }; - }; + python-Levenshtein = callPackage ../development/python-modules/python-levenshtein { }; libcloud = buildPythonPackage (rec { name = "libcloud-1.2.1";