diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-05-01 16:43:04 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-01 10:58:33 -0700 |
commit | 506fa8baf0f89a4f273fceeb4a4a60887f8caad1 (patch) | |
tree | 03ae76f2bbefc1a8f5949be23b277172be97f900 /pkgs/development/python-modules/cffi | |
parent | 29271ef915bc7d62a208f3160d204d9dd99b5d1d (diff) | |
download | nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar.gz nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar.bz2 nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar.lz nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar.xz nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.tar.zst nixpkgs-506fa8baf0f89a4f273fceeb4a4a60887f8caad1.zip |
pythonPackages.cffi: use pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/cffi')
-rw-r--r-- | pkgs/development/python-modules/cffi/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index afd9cfdc295..496124bfa11 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildPythonPackage, isPyPy, fetchPypi, libffi, pycparser, pytest }: +{ lib, stdenv, buildPythonPackage, isPyPy, fetchPypi, libffi, pycparser, pytestCheckHook }: if isPyPy then null else buildPythonPackage rec { pname = "cffi"; @@ -12,7 +12,6 @@ if isPyPy then null else buildPythonPackage rec { outputs = [ "out" "dev" ]; propagatedBuildInputs = [ libffi pycparser ]; - checkInputs = [ pytest ]; # On Darwin, the cffi tests want to hit libm a lot, and look for it in a global # impure search path. It's obnoxious how much repetition there is, and how difficult @@ -33,9 +32,8 @@ if isPyPy then null else buildPythonPackage rec { "-Wno-unused-command-line-argument -Wno-unreachable-code"; doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate - checkPhase = '' - py.test -k "not test_char_pointer_conversion" - ''; + + checkInputs = [ pytestCheckHook ]; meta = with lib; { maintainers = with maintainers; [ domenkozar lnl7 ]; |