Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.pykwalify: fix tests with ruamel.yaml 0.18+ #282468

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions pkgs/development/python-modules/pykwalify/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ lib
, buildPythonPackage
, fetchpatch
, python-dateutil
, docopt
, fetchPypi
, pytestCheckHook
, pyyaml
, ruamel-yaml
, testfixtures
}:
Expand All @@ -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
];

Expand All @@ -31,10 +39,6 @@ buildPythonPackage rec {
testfixtures
];

disabledTests = [
"test_multi_file_support"
];

pythonImportsCheck = [ "pykwalify" ];

meta = with lib; {
Expand Down