From fdce5ed26b28c32a24bece13fcca34ced8ebb7de Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 13 Jul 2023 16:40:31 +0200 Subject: [PATCH] python3Packages.hyperpyyaml: init at 1.2.1 --- .../python-modules/hyperpyyaml/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/hyperpyyaml/default.nix diff --git a/pkgs/development/python-modules/hyperpyyaml/default.nix b/pkgs/development/python-modules/hyperpyyaml/default.nix new file mode 100644 index 000000000000..d66d16dc42f3 --- /dev/null +++ b/pkgs/development/python-modules/hyperpyyaml/default.nix @@ -0,0 +1,39 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +, pytestCheckHook +, pyyaml +, ruamel-yaml +}: + +buildPythonPackage rec { + pname = "hyperpyyaml"; + version = "1.2.1"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "speechbrain"; + repo = "hyperpyyaml"; + rev = "refs/tags/v${version}"; + hash = "sha256-tC4kLJAY9MVgjWwU2Qu0rPCVDw7CjKVIciRZgYhnR9I="; + }; + + propagatedBuildInputs = [ + pyyaml + ruamel-yaml + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "hyperpyyaml" ]; + + meta = with lib; { + description = "Extensions to YAML syntax for better python interaction"; + homepage = "https://github.com/speechbrain/HyperPyYAML"; + changelog = "https://github.com/speechbrain/HyperPyYAML/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 36ef507e2ee2..9ed4fd9a5c2c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4859,6 +4859,8 @@ self: super: with self; { hyperopt = callPackage ../development/python-modules/hyperopt { }; + hyperpyyaml = callPackage ../development/python-modules/hyperpyyaml { }; + hypothesis-auto = callPackage ../development/python-modules/hypothesis-auto { }; hypothesis = callPackage ../development/python-modules/hypothesis { };