python.pkgs.awesome-slugify: fix build (#34764)

It broke because Unidecode went out of
its defined range (Unidecode>=0.04.14,<0.05)
with commit 57e9ed3719
This commit is contained in:
thorstenweber83 2018-02-09 17:02:23 +01:00 committed by Jörg Thalheim
parent 465d7c55d9
commit 814a9310dc

View File

@ -3,13 +3,17 @@
buildPythonPackage rec {
pname = "awesome-slugify";
version = "1.6.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0wgxrhr8s5vk2xmcz9s1z1aml4ppawmhkbggl9rp94c747xc7pmv";
};
prePatch = ''
substituteInPlace setup.py \
--replace 'Unidecode>=0.04.14,<0.05' 'Unidecode>=0.04.14'
'';
patches = [
./slugify_filename_test.patch # fixes broken test by new unidecode
];