python3Packages.pydyf: fix failing tests

main
Rasmus Précenth 2 years ago
parent 375fc4644c
commit 3120f41ddd
No known key found for this signature in database
GPG Key ID: E0D6F12345AD5641
  1. 10
      pkgs/development/python-modules/pydyf/default.nix

@ -1,5 +1,6 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchpatch
, fetchPypi , fetchPypi
, isPy3k , isPy3k
, pytestCheckHook , pytestCheckHook
@ -19,6 +20,15 @@ buildPythonPackage rec {
sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw="; sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
}; };
patches = [
# Fix tests for Ghostscript 9.56
# Remove after v0.1.3 has been released
(fetchpatch {
url = "https://github.com/CourtBouillon/pydyf/commit/d4c34823f1d15368753c9c26f7acc7a24fc2d979.patch";
sha256 = "sha256-2hHZW/q5CbStbpSJYbm3b23qKXANEb5jbPGQ83uHC+Q=";
})
];
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "--isort --flake8 --cov --no-cov-on-fail" "" --replace "--isort --flake8 --cov --no-cov-on-fail" ""

Loading…
Cancel
Save