2017-05-03 05:17:48 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, unidecode, regex, isPy3k }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-slugify";
|
2019-02-14 07:37:28 +00:00
|
|
|
version = "2.0.1";
|
2017-05-03 05:17:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:28 +00:00
|
|
|
sha256 = "d3e034397236020498e677a35e5c05dcc6ba1624b608b9ef7e5fe3090ccbd5a8";
|
2017-05-03 05:17:48 +01:00
|
|
|
};
|
|
|
|
doCheck = !isPy3k;
|
|
|
|
# (only) on python3 unittest loader (loadTestsFromModule) fails
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ unidecode regex ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/un33k/python-slugify;
|
|
|
|
description = "A Python Slugify application that handles Unicode";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
};
|
|
|
|
}
|