diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-slugify')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/python-slugify/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-slugify/default.nix b/nixpkgs/pkgs/development/python-modules/python-slugify/default.nix new file mode 100644 index 000000000000..39950b97f6c7 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/python-slugify/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchPypi, buildPythonPackage, unidecode, regex, isPy3k }: + +buildPythonPackage rec { + pname = "python-slugify"; + version = "2.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "d3e034397236020498e677a35e5c05dcc6ba1624b608b9ef7e5fe3090ccbd5a8"; + }; + 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 ]; + }; +} |