587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, text-unidecode
|
|
, unidecode
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-slugify";
|
|
version = "8.0.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "un33k";
|
|
repo = "python-slugify";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zReUMIkItnDot3XyYCoPUNHrrAllbClWFYcxdTy3A30=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
text-unidecode
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
unidecode = [
|
|
unidecode
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"slugify"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Slugify application that handles Unicode";
|
|
mainProgram = "slugify";
|
|
homepage = "https://github.com/un33k/python-slugify";
|
|
changelog = "https://github.com/un33k/python-slugify/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ vrthra ];
|
|
};
|
|
}
|