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