git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154736 from fabaff/fix-json-schema-for-humans

python310Packages.json-schema-for-humans: relax pyyaml constraint

commit02065818203e3b6b152c4bcdf1a21ebede5e7498 authorFabian Affolter <fabian@affolter-engineering.ch> dateWed 12 Jan 2022, 12:04 (5 years ago) parente0e1c719f25f01
1 file changed+7−1
pkgs/development/python-modules/json-schema-for-humans/default.nix+7−1
pkgs/development/python-modules/json-schema-for-humans/default.nix+7−1
@@ -28,7 +28,7 @@ buildPythonPackage rec {
2828 owner = "coveooss";
2929 repo = pname;
3030 rev = "v${version}";
31− sha256 = "sha256-gaholnLO5oIQaXgliuvlU2MfpjiCMgAPplOPgvMYim8=";
31+ hash = "sha256-gaholnLO5oIQaXgliuvlU2MfpjiCMgAPplOPgvMYim8=";
3232 };
3333
3434 nativeBuildInputs = [
@@ -54,6 +54,12 @@ buildPythonPackage rec {
5454 pytestCheckHook
5555 ];
5656
57+ postPatch = ''
58+ # https://github.com/coveooss/json-schema-for-humans/issues/127
59+ substituteInPlace pyproject.toml \
60+ --replace 'PyYAML = "^5.4.1"' 'PyYAML = "*"'
61+ '';
62+
5763 disabledTests = [
5864 # Tests require network access
5965 "test_references_url"