diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-19 11:42:41 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-02-22 01:46:11 +0100 |
commit | 1977a2d5ee3eb426b0772cef1e9001945f399370 (patch) | |
tree | bc8bd7c24e907ce39c4a65cf8ebf500fa61d95df | |
parent | e426e3f8371bc660e86e372c17a220e79c930f24 (diff) | |
download | nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar.gz nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar.bz2 nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar.lz nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar.xz nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.tar.zst nixlib-1977a2d5ee3eb426b0772cef1e9001945f399370.zip |
pythonPackages.pytest-mock: fix build
This applies the following patch: https://github.com/pytest-dev/pytest-mock/pull/107
-rw-r--r-- | pkgs/development/python-modules/pytest-mock/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index 51ec2a1f4cbc..6b852583c7ed 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, pytest, mock, setuptools_scm }: +{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }: buildPythonPackage rec { pname = "pytest-mock"; @@ -9,6 +9,11 @@ buildPythonPackage rec { sha256 = "8ed6c9ac6b7565b226b4da2da48876c9198d76401ec8d9c5e4c69b45423e33f8"; }; + patches = fetchpatch { + url = "${meta.homepage}/pull/107.patch"; + sha256 = "07p7ra6lilfv04wyxc855zmfwxvnpmi9s0v6vh5bx769cj9jwxck"; + }; + propagatedBuildInputs = [ pytest ] ++ lib.optional (!isPy3k) mock; nativeBuildInputs = [ setuptools_scm ]; |