at 23.05-pre 624 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, python 5}: 6 7buildPythonPackage rec { 8 pname = "pylev"; 9 version = "1.4.0"; 10 11 src = fetchFromGitHub { 12 owner = "toastdriven"; 13 repo = "pylev"; 14 rev = "v${version}"; 15 sha256 = "0fgxjdnvnvavnxmxxd0fl5jyr2f31g3a26bwyxcpy56mgpd095c1"; 16 }; 17 18 checkPhase = '' 19 ${python.interpreter} -m unittest tests 20 ''; 21 22 pythonImportsCheck = [ "pylev" ]; 23 24 meta = with lib; { 25 description = "Python Levenshtein implementation"; 26 homepage = "https://github.com/toastdriven/pylev"; 27 license = licenses.bsd3; 28 maintainers = with maintainers; [ jakewaksbaum ]; 29 }; 30}