Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 62 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies pyyaml, ruamel-yaml,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "hyperpyyaml"; version = "1.2.3"; pyproject = true;
src = fetchFromGitHub { owner = "speechbrain"; repo = "hyperpyyaml"; tag = "v${version}"; hash = "sha256-/7OrIR61zQYl2+RjiOOlaqUGWBieon5fe8sgmEvKowo="; };
postPatch = '' # https://github.com/speechbrain/HyperPyYAML/pull/33 substituteInPlace hyperpyyaml/core.py \ --replace-fail \ " hparams = yaml.load(yaml_stream, Loader=loader)" \ " if not hasattr(loader, 'max_depth'): loader.max_depth = 0 hparams = yaml.load(yaml_stream, Loader=loader)" '';
# https://github.com/speechbrain/HyperPyYAML/pull/33 pythonRelaxDeps = [ "ruamel.yaml" ];
build-system = [ setuptools ];
dependencies = [ pyyaml ruamel-yaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hyperpyyaml" ];
meta = { description = "Extensions to YAML syntax for better python interaction"; homepage = "https://github.com/speechbrain/HyperPyYAML"; changelog = "https://github.com/speechbrain/HyperPyYAML/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };}