pythonPackages.cffi: use pytestCheckHook
This commit is contained in:
parent
29271ef915
commit
506fa8baf0
@ -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 {
|
if isPyPy then null else buildPythonPackage rec {
|
||||||
pname = "cffi";
|
pname = "cffi";
|
||||||
@ -12,7 +12,6 @@ if isPyPy then null else buildPythonPackage rec {
|
|||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libffi pycparser ];
|
propagatedBuildInputs = [ libffi pycparser ];
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
|
||||||
# On Darwin, the cffi tests want to hit libm a lot, and look for it in a global
|
# 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
|
# 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";
|
"-Wno-unused-command-line-argument -Wno-unreachable-code";
|
||||||
|
|
||||||
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
|
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
|
||||||
checkPhase = ''
|
|
||||||
py.test -k "not test_char_pointer_conversion"
|
checkInputs = [ pytestCheckHook ];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
maintainers = with maintainers; [ domenkozar lnl7 ];
|
maintainers = with maintainers; [ domenkozar lnl7 ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user