Merge pull request #112055 from dotlambda/ddt-pyyaml

[staging-next] pythonPackages.ddt: fix tests
This commit is contained in:
Martin Weinelt 2021-02-07 03:41:26 +01:00 committed by GitHub
commit b22e3adee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, six, pyyaml, mock , six, pyyaml, mock
, pytestCheckHook , pytestCheckHook
, enum34 , enum34
@ -16,6 +17,14 @@ buildPythonPackage rec {
sha256 = "0595e70d074e5777771a45709e99e9d215552fb1076443a25fad6b23d8bf38da"; sha256 = "0595e70d074e5777771a45709e99e9d215552fb1076443a25fad6b23d8bf38da";
}; };
patches = [
# fix tests with recent PyYAML, https://github.com/datadriventests/ddt/pull/96
(fetchpatch {
url = "https://github.com/datadriventests/ddt/commit/97f0a2315736e50f1b34a015447cd751da66ecb6.patch";
sha256 = "1g7l5h7m7s4yqfxlygrg7nnhb9xhz1drjld64ssi3fbsmn7klf0a";
})
];
checkInputs = [ six pyyaml mock pytestCheckHook ]; checkInputs = [ six pyyaml mock pytestCheckHook ];
propagatedBuildInputs = lib.optionals (!isPy3k) [ propagatedBuildInputs = lib.optionals (!isPy3k) [