python3Packages.cairocffi: fix cross-compilation, patch out unneeded tests
This commit is contained in:
parent
770c364217
commit
4ebd9ffc5b
2 changed files with 13 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
|||
, makeFontsConf
|
||||
, freefont_ttf
|
||||
, pytest
|
||||
, pytest-runner
|
||||
, glibcLocales
|
||||
, cairo
|
||||
, cffi
|
||||
|
|
|
@ -23,8 +23,20 @@ buildPythonPackage rec {
|
|||
fontDirectories = [ freefont_ttf ];
|
||||
};
|
||||
|
||||
checkInputs = [ numpy pytest pytest-runner glibcLocales ];
|
||||
propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib;
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
|
||||
# pytestCheckHook does not work
|
||||
checkInputs = [ numpy pytest glibcLocales ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "pytest-runner" "" \
|
||||
--replace "pytest-cov" "" \
|
||||
--replace "pytest-flake8" "" \
|
||||
--replace "pytest-isort" "" \
|
||||
--replace "--flake8 --isort" ""
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test $out/${python.sitePackages}
|
||||
|
|
Loading…
Reference in a new issue