summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cffi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cffi/default.nix')
-rw-r--r--pkgs/development/python-modules/cffi/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix
index 1e64aad68ea3..55e2bbe4c4bf 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";
@@ -11,8 +11,9 @@ if isPyPy then null else buildPythonPackage rec {
outputs = [ "out" "dev" ];
- propagatedBuildInputs = [ libffi pycparser ];
- checkInputs = [ pytest ];
+ buildInputs = [ libffi ];
+
+ propagatedBuildInputs = [ pycparser ];
# 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 +34,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 ];