1{ stdenv, fetchPypi, buildPythonPackage, python, text-unidecode }:
2
3buildPythonPackage rec {
4 pname = "python-slugify";
5 version = "4.0.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "a8fc3433821140e8f409a9831d13ae5deccd0b033d4744d94b31fea141bdd84c";
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}