Merge pull request #282468 from lilyinstarlight/fix/pykwalify-tests

python311Packages.pykwalify: fix tests with ruamel.yaml 0.18+
This commit is contained in:
Nick Cao 2024-01-21 11:21:12 -05:00 committed by GitHub
commit ba82cca580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,10 @@
{ lib
, buildPythonPackage
, fetchpatch
, python-dateutil
, docopt
, fetchPypi
, pytestCheckHook
, pyyaml
, ruamel-yaml
, testfixtures
}:
@ -19,10 +19,18 @@ buildPythonPackage rec {
hash = "sha256-eWsq0+1MuZuIMItTP7L1WcMPpu+0+p/aETR/SD0kWIQ=";
};
patches = [
# fix test failures with ruamel.yaml 0.18+
(fetchpatch {
name = "pykwalify-fix-tests-ruamel-yaml-0.18.patch";
url = "https://github.com/Grokzen/pykwalify/commit/57bb2ba5c28b6928edb3f07ef581a5a807524baf.diff";
hash = "sha256-XUiebDzFSvNrPpRMoc2lv9m+30cfFh0N0rznMiSdQ/0=";
})
];
propagatedBuildInputs = [
python-dateutil
docopt
pyyaml
ruamel-yaml
];
@ -31,10 +39,6 @@ buildPythonPackage rec {
testfixtures
];
disabledTests = [
"test_multi_file_support"
];
pythonImportsCheck = [ "pykwalify" ];
meta = with lib; {