blob: ebc6ccf96c6bd004ca9ea632e3498acb62134ffc (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
text-unidecode,
unidecode,
}:
buildPythonPackage rec {
pname = "python-slugify";
version = "8.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "un33k";
repo = "python-slugify";
tag = "v${version}";
hash = "sha256-zReUMIkItnDot3XyYCoPUNHrrAllbClWFYcxdTy3A30=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ text-unidecode ];
optional-dependencies = {
unidecode = [ unidecode ];
};
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test.py" ];
pythonImportsCheck = [ "slugify" ];
meta = {
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 = lib.licenses.mit;
maintainers = [ ];
};
}
|