My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pylev/default.nix

30 lines
624 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "pylev";
version = "1.4.0";
src = fetchFromGitHub {
owner = "toastdriven";
repo = "pylev";
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";
license = licenses.bsd3;
maintainers = with maintainers; [ jakewaksbaum ];
};
}