diff options
author | legendofmiracles <legendofmiracles@protonmail.com> | 2021-10-20 19:04:16 -0600 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-10-29 14:42:15 -0700 |
commit | 4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be (patch) | |
tree | c15a659d89e22e3d9ceacd54225dfbd5c3419d4b | |
parent | 770c364217bad9abc8cc9d1793de99539bc1f22b (diff) | |
download | nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar.gz nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar.bz2 nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar.lz nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar.xz nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.tar.zst nixpkgs-4ebd9ffc5b11cff884cbc05fc2008f2fe9fe18be.zip |
python3Packages.cairocffi: fix cross-compilation, patch out unneeded tests
-rw-r--r-- | pkgs/development/python-modules/cairocffi/default.nix | 1 | ||||
-rw-r--r-- | pkgs/development/python-modules/cairocffi/generic.nix | 14 |
2 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/cairocffi/default.nix b/pkgs/development/python-modules/cairocffi/default.nix index 9b64dbeb66c..8e26517ba21 100644 --- a/pkgs/development/python-modules/cairocffi/default.nix +++ b/pkgs/development/python-modules/cairocffi/default.nix @@ -8,7 +8,6 @@ , makeFontsConf , freefont_ttf , pytest -, pytest-runner , glibcLocales , cairo , cffi diff --git a/pkgs/development/python-modules/cairocffi/generic.nix b/pkgs/development/python-modules/cairocffi/generic.nix index cdcdbad3395..004cf8ae784 100644 --- a/pkgs/development/python-modules/cairocffi/generic.nix +++ b/pkgs/development/python-modules/cairocffi/generic.nix @@ -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} |