From 814a9310dc05df88c677b8acb44303e183af35a3 Mon Sep 17 00:00:00 2001 From: thorstenweber83 Date: Fri, 9 Feb 2018 17:02:23 +0100 Subject: [PATCH] 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 57e9ed3719e5cef086a3463513e8805c761c3cf4 --- pkgs/development/python-modules/awesome-slugify/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/awesome-slugify/default.nix b/pkgs/development/python-modules/awesome-slugify/default.nix index 105c70c28b34..945c941dec4e 100644 --- a/pkgs/development/python-modules/awesome-slugify/default.nix +++ b/pkgs/development/python-modules/awesome-slugify/default.nix @@ -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 ];