1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, text-unidecode
7, unidecode
8}:
9
10buildPythonPackage rec {
11 pname = "python-slugify";
12 version = "5.0.2";
13 disabled = pythonOlder "3.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-8TODoLn8vmSaGJK5yOtPjqsdbYS4S7emJDF6+pgVnKs=";
18 };
19
20 propagatedBuildInputs = [
21 text-unidecode
22 unidecode
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 pytestFlagsArray = [ "test.py" ];
30
31 pythonImportsCheck = [ "slugify" ];
32
33 meta = with lib; {
34 description = "Python Slugify application that handles Unicode";
35 homepage = "https://github.com/un33k/python-slugify";
36 license = licenses.mit;
37 maintainers = with maintainers; [ vrthra ];
38 };
39}