Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 30 lines 775 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, unidecode, regex, python }: 2 3buildPythonPackage rec { 4 pname = "awesome-slugify"; 5 version = "1.6.5"; 6 name = "${pname}-${version}"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv"; 11 }; 12 13 patches = [ 14 ./slugify_filename_test.patch # fixes broken test by new unidecode 15 ]; 16 17 propagatedBuildInputs = [ unidecode regex ]; 18 19 checkPhase = '' 20 ${python.interpreter} -m unittest discover 21 ''; 22 23 meta = with stdenv.lib; { 24 homepage = "https://github.com/dimka665/awesome-slugify"; 25 description = "Python flexible slugify function"; 26 license = licenses.gpl3; 27 platforms = platforms.all; 28 maintainers = with maintainers; [ abbradar ]; 29 }; 30}