Skip to content

Commit

Permalink
python.pkgs.awesome-slugify: fix build (#34764)
Browse files Browse the repository at this point in the history
It broke because Unidecode went out of
its defined range (Unidecode>=0.04.14,<0.05)
with commit 57e9ed3
  • Loading branch information
thorstenweber83 authored and Mic92 committed Feb 9, 2018
1 parent 465d7c5 commit 814a931
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/python-modules/awesome-slugify/default.nix
Expand Up @@ -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
];
Expand Down

0 comments on commit 814a931

Please sign in to comment.