Skip to content

Commit

Permalink
Merge pull request NixOS#256286 from GaetanLepage/hyperpyyaml
Browse files Browse the repository at this point in the history
python310Packages.hyperpyyaml: fix
  • Loading branch information
NickCao authored Sep 20, 2023
2 parents 01636ce + 9dcf79c commit 86bb247
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/hyperpyyaml/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pyyaml
, ruamel-yaml
, pytestCheckHook
Expand All @@ -18,6 +19,15 @@ buildPythonPackage rec {
hash = "sha256-tC4kLJAY9MVgjWwU2Qu0rPCVDw7CjKVIciRZgYhnR9I=";
};

patches = [
# This patch is needed to comply with the newer versions of ruamel.yaml.
# PR to upstream this change: https://github.com/speechbrain/HyperPyYAML/pull/23
(fetchpatch {
url = "https://github.com/speechbrain/HyperPyYAML/commit/95c6133686c42764770a77429eab55f6dfe5581c.patch";
hash = "sha256-WrHDo17f5pYNXSSqI8t1tlAloYms9oLFup7D2qCKwWw=";
})
];

propagatedBuildInputs = [
pyyaml
ruamel-yaml
Expand All @@ -35,7 +45,5 @@ buildPythonPackage rec {
changelog = "https://github.com/speechbrain/HyperPyYAML/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ GaetanLepage ];
# hyperpyyaml is not compatible with the too new version of `ruaml-yaml`
broken = true;
};
}

0 comments on commit 86bb247

Please sign in to comment.