depot/third_party/nixpkgs/pkgs/development/python-modules/python-slugify/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

25 lines
688 B
Nix

{ stdenv, fetchPypi, buildPythonPackage, python, text-unidecode }:
buildPythonPackage rec {
pname = "python-slugify";
version = "4.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "69a517766e00c1268e5bbfc0d010a0a8508de0b18d30ad5a1ff357f8ae724270";
};
propagatedBuildInputs = [ text-unidecode ];
checkPhase = ''
${python.interpreter} test.py
'';
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 ];
};
}