mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
32 lines
649 B
Nix
32 lines
649 B
Nix
{ 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 ];
|
|
};
|
|
}
|