From 4be13dc00b88a451bf1115cd8e7d12daa5342e9e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 23 Aug 2021 08:05:56 +0200 Subject: [PATCH] python3Packages.pylev: 1.3.0 -> 1.4.0 --- .../python-modules/pylev/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pylev/default.nix b/pkgs/development/python-modules/pylev/default.nix index 5df0ce4690ef..c9c3340db192 100644 --- a/pkgs/development/python-modules/pylev/default.nix +++ b/pkgs/development/python-modules/pylev/default.nix @@ -1,23 +1,29 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +}: -buildPythonPackage { +buildPythonPackage rec { pname = "pylev"; - version = "1.3.0"; + version = "1.4.0"; - # No tests in PyPi tarball src = fetchFromGitHub { owner = "toastdriven"; repo = "pylev"; - # Can't use a tag because it's missing - # https://github.com/toastdriven/pylev/issues/10 - # rev = "v${version}; - rev = "72e3d490515c3188e2acac9c15ea1b466f9ff938"; - sha256 = "18dg1rfnqgfl6x4vafiq4la9d7f65xak19gcvngslq0bm1z6hyd8"; + rev = "v${version}"; + sha256 = "0fgxjdnvnvavnxmxxd0fl5jyr2f31g3a26bwyxcpy56mgpd095c1"; }; + checkPhase = '' + ${python.interpreter} -m unittest tests + ''; + + pythonImportsCheck = [ "pylev" ]; + meta = with lib; { + description = "Python Levenshtein implementation"; homepage = "https://github.com/toastdriven/pylev"; - description = "A pure Python Levenshtein implementation that's not freaking GPL'd"; license = licenses.bsd3; maintainers = with maintainers; [ jakewaksbaum ]; };