1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyyaml,
6 ruamel-yaml,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "hyperpyyaml";
12 version = "1.2.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "speechbrain";
17 repo = "hyperpyyaml";
18 tag = "v${version}";
19 hash = "sha256-eA4/wXmqlqomfRbJNi7dkBRoxneCbCbURSPvASF2sgA=";
20 };
21
22 propagatedBuildInputs = [
23 pyyaml
24 ruamel-yaml
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "hyperpyyaml" ];
30
31 meta = with lib; {
32 description = "Extensions to YAML syntax for better python interaction";
33 homepage = "https://github.com/speechbrain/HyperPyYAML";
34 changelog = "https://github.com/speechbrain/HyperPyYAML/releases/tag/v${version}";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ GaetanLepage ];
37 };
38}