1 { lib, buildPythonPackage, fetchPypi, unidecode, regex, unittestCheckHook }:
3 buildPythonPackage rec {
4 pname = "awesome-slugify";
9 sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv";
13 substituteInPlace setup.py \
14 --replace 'Unidecode>=0.04.14,<0.05' 'Unidecode>=0.04.14'
18 ./slugify_filename_test.patch # fixes broken test by new unidecode
21 propagatedBuildInputs = [ unidecode regex ];
23 checkInputs = [ unittestCheckHook ];
26 homepage = "https://github.com/dimka665/awesome-slugify";
27 description = "Python flexible slugify function";
28 license = licenses.gpl3;
29 platforms = platforms.all;
30 maintainers = with maintainers; [ abbradar ];