lol

python3Packages.cairocffi: fix cross-compilation, patch out unneeded tests

authored by

legendofmiracles and committed by
Jonathan Ringer
4ebd9ffc 770c3642

+13 -2
-1
pkgs/development/python-modules/cairocffi/default.nix
··· 8 8 , makeFontsConf 9 9 , freefont_ttf 10 10 , pytest 11 - , pytest-runner 12 11 , glibcLocales 13 12 , cairo 14 13 , cffi
+13 -1
pkgs/development/python-modules/cairocffi/generic.nix
··· 23 23 fontDirectories = [ freefont_ttf ]; 24 24 }; 25 25 26 - checkInputs = [ numpy pytest pytest-runner glibcLocales ]; 27 26 propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; 27 + propagatedNativeBuildInputs = [ cffi ]; 28 + 29 + # pytestCheckHook does not work 30 + checkInputs = [ numpy pytest glibcLocales ]; 31 + 32 + postPatch = '' 33 + substituteInPlace setup.cfg \ 34 + --replace "pytest-runner" "" \ 35 + --replace "pytest-cov" "" \ 36 + --replace "pytest-flake8" "" \ 37 + --replace "pytest-isort" "" \ 38 + --replace "--flake8 --isort" "" 39 + ''; 28 40 29 41 checkPhase = '' 30 42 py.test $out/${python.sitePackages}