1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, text-unidecode
7, unidecode
8}:
9
10buildPythonPackage rec {
11 pname = "python-slugify";
12 version = "6.1.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "un33k";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-JGjUNBEMuICsaClQGDSGX4qFRjecVKzmpPNRUTvfwho=";
22 };
23
24 propagatedBuildInputs = [
25 text-unidecode
26 unidecode
27 ];
28
29 checkInputs = [
30 pytestCheckHook
31 ];
32
33 pytestFlagsArray = [
34 "test.py"
35 ];
36
37 pythonImportsCheck = [
38 "slugify"
39 ];
40
41 meta = with lib; {
42 description = "Python Slugify application that handles Unicode";
43 homepage = "https://github.com/un33k/python-slugify";
44 license = licenses.mit;
45 maintainers = with maintainers; [ vrthra ];
46 };
47}