1{ stdenv, fetchPypi, buildPythonPackage, python, text-unidecode }:
2
3buildPythonPackage rec {
4 pname = "python-slugify";
5 version = "3.0.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "57163ffb345c7e26063435a27add1feae67fa821f1ef4b2f292c25847575d758";
10 };
11
12 propagatedBuildInputs = [ text-unidecode ];
13
14 checkPhase = ''
15 ${python.interpreter} test.py
16 '';
17
18 meta = with stdenv.lib; {
19 homepage = https://github.com/un33k/python-slugify;
20 description = "A Python Slugify application that handles Unicode";
21 license = licenses.mit;
22 platforms = platforms.all;
23 maintainers = with maintainers; [ vrthra ];
24 };
25}