nixpkgs/pkgs/development/python-modules/pylev/default.nix

31 lines
624 B
Nix
Raw Normal View History

2021-08-23 07:05:56 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
2019-01-07 16:41:26 +00:00
2021-08-23 07:05:56 +01:00
buildPythonPackage rec {
2019-01-07 16:41:26 +00:00
pname = "pylev";
2021-08-23 07:05:56 +01:00
version = "1.4.0";
2019-01-07 16:41:26 +00:00
src = fetchFromGitHub {
owner = "toastdriven";
repo = "pylev";
2021-08-23 07:05:56 +01:00
rev = "v${version}";
sha256 = "0fgxjdnvnvavnxmxxd0fl5jyr2f31g3a26bwyxcpy56mgpd095c1";
2019-01-07 16:41:26 +00:00
};
2021-08-23 07:05:56 +01:00
checkPhase = ''
${python.interpreter} -m unittest tests
'';
pythonImportsCheck = [ "pylev" ];
2019-01-07 16:41:26 +00:00
meta = with lib; {
2021-08-23 07:05:56 +01:00
description = "Python Levenshtein implementation";
homepage = "https://github.com/toastdriven/pylev";
2019-01-07 16:41:26 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ jakewaksbaum ];
};
}