2019-04-25 12:07:03 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, python, text-unidecode }:
|
2017-05-03 05:17:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-slugify";
|
2019-10-24 07:47:45 +01:00
|
|
|
version = "4.0.0";
|
2017-05-03 05:17:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:45 +01:00
|
|
|
sha256 = "a8fc3433821140e8f409a9831d13ae5deccd0b033d4744d94b31fea141bdd84c";
|
2017-05-03 05:17:48 +01:00
|
|
|
};
|
|
|
|
|
2019-04-25 12:07:03 +01:00
|
|
|
propagatedBuildInputs = [ text-unidecode ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
2017-05-03 05:17:48 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/un33k/python-slugify";
|
2017-05-03 05:17:48 +01:00
|
|
|
description = "A Python Slugify application that handles Unicode";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
};
|
|
|
|
}
|