Merge pull request #172295 from Prillan/fix-pydyf

python3Packages.pydyf: fix failing tests
This commit is contained in:
Thiago Kenji Okada 2022-05-10 13:17:40 +01:00 committed by GitHub
commit ae7fa16e89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, isPy3k
, pytestCheckHook
@ -19,6 +20,15 @@ buildPythonPackage rec {
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 = ''
substituteInPlace pyproject.toml \
--replace "--isort --flake8 --cov --no-cov-on-fail" ""