From 04d3e130b8d11f046bae38be9731900e92cb0d1c Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 12 Jun 2018 14:09:31 +0800 Subject: [PATCH] pythonPackages.warrant: Fix compat with pip 10 Fixes #41866 --- pkgs/development/python-modules/warrant/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/warrant/default.nix b/pkgs/development/python-modules/warrant/default.nix index ac83430fbae20..c152271af3359 100644 --- a/pkgs/development/python-modules/warrant/default.nix +++ b/pkgs/development/python-modules/warrant/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi +{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, fetchpatch , mock , boto3, envs, python-jose, requests }: @@ -14,6 +14,14 @@ buildPythonPackage rec { sha256 = "0gw3crg64p1zx3k5js0wh0x5bldgs7viy4g8hld9xbka8q0374hi"; }; + patches = [ + (fetchpatch { + name = "fix-pip10-compat.patch"; + url = " https://github.com/capless/warrant/commit/ae17d17d9888b9218a8facf6f6ad0bf4adae9a12.patch"; + sha256 = "1lvqi2qfa3kxdz05ab2lc7xnd3piyvvnz9kla2jl4pchi876z17c"; + }) + ]; + # this needs to go when 0.6.2 or later is released postPatch = '' substituteInPlace requirements.txt \