blob: 30831a8c5727b51fcd1b751d29e173d9d1c27342 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage rec {
pname = "pylev";
version = "1.4.0";
format = "setuptools";
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 ];
};
}
|