1{ stdenv, fetchPypi, buildPythonPackage, unidecode, regex, isPy3k }:
2
3buildPythonPackage rec {
4 pname = "python-slugify";
5 version = "1.2.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "5dbb360b882b2dabe0471a1a92f604504d83c2a73c71f2098d004ab62e695534";
10 };
11 doCheck = !isPy3k;
12 # (only) on python3 unittest loader (loadTestsFromModule) fails
13
14 propagatedBuildInputs = [ unidecode regex ];
15
16 meta = with stdenv.lib; {
17 homepage = https://github.com/un33k/python-slugify;
18 description = "A Python Slugify application that handles Unicode";
19 license = licenses.mit;
20 platforms = platforms.all;
21 maintainers = with maintainers; [ vrthra ];
22 };
23}