Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 718 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub }: 2 3buildPythonPackage rec { 4 pname = "pylev"; 5 version = "1.3.0"; 6 7 # No tests in PyPi tarball 8 src = fetchFromGitHub { 9 owner = "toastdriven"; 10 repo = "pylev"; 11 # Can't use a tag because it's missing 12 # https://github.com/toastdriven/pylev/issues/10 13 # rev = "v${version}; 14 rev = "72e3d490515c3188e2acac9c15ea1b466f9ff938"; 15 sha256 = "18dg1rfnqgfl6x4vafiq4la9d7f65xak19gcvngslq0bm1z6hyd8"; 16 }; 17 18 meta = with lib; { 19 homepage = https://github.com/toastdriven/pylev; 20 description = "A pure Python Levenshtein implementation that's not freaking GPL'd"; 21 license = licenses.bsd3; 22 maintainers = with maintainers; [ jakewaksbaum ]; 23 }; 24}