diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-16 17:39:20 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-07-20 09:25:30 +0200 |
commit | 248fd7a46c57773cc4f5090183d45a2be3be2878 (patch) | |
tree | beb6a2c63341343eda32133e3561fdf9003c9843 /pkgs/development/python-modules/pytest-mock | |
parent | d3915617681e9d1674992cb28dd9c4beaaf34398 (diff) | |
download | nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar.gz nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar.bz2 nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar.lz nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar.xz nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.tar.zst nixpkgs-248fd7a46c57773cc4f5090183d45a2be3be2878.zip |
pythonPackages.pytest-mock: refactor fix broken package
Diffstat (limited to 'pkgs/development/python-modules/pytest-mock')
-rw-r--r-- | pkgs/development/python-modules/pytest-mock/default.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index 8fba5e90ab1..58e032df4df 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy3k, pytest, mock, setuptools_scm }: +{ lib +, buildPythonPackage +, fetchPypi +, fetchpatch +, isPy3k +, pytest +, mock +, setuptools_scm +}: buildPythonPackage rec { pname = "pytest-mock"; @@ -10,7 +18,14 @@ buildPythonPackage rec { }; propagatedBuildInputs = lib.optional (!isPy3k) mock; - nativeBuildInputs = [ setuptools_scm pytest ]; + + nativeBuildInputs = [ + setuptools_scm + ]; + + checkInputs = [ + pytest + ]; patches = [ # Fix tests for pytest 4.6. Remove with the next release @@ -21,7 +36,9 @@ buildPythonPackage rec { ]; checkPhase = '' - py.test + # remove disabled test on next release + # https://github.com/pytest-dev/pytest-mock/pull/151 + pytest -k "not test_detailed_introspection" ''; meta = with lib; { |