From 60cde9e4b9f226a7ea526efddcb9b3aaca9ee6a8 Mon Sep 17 00:00:00 2001 From: Federico Beffa Date: Mon, 11 Nov 2024 14:57:30 +0100 Subject: [PATCH] python3Packages.ruamel-yaml-string: init at 0.1.1 --- .../ruamel-yaml-string/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/ruamel-yaml-string/default.nix diff --git a/pkgs/development/python-modules/ruamel-yaml-string/default.nix b/pkgs/development/python-modules/ruamel-yaml-string/default.nix new file mode 100644 index 000000000000..0634359f6511 --- /dev/null +++ b/pkgs/development/python-modules/ruamel-yaml-string/default.nix @@ -0,0 +1,32 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + ruamel-yaml, +}: + +buildPythonPackage rec { + pname = "ruamel-yaml-string"; + version = "0.1.1"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "ruamel.yaml.string"; + hash = "sha256-enrtzAVdRcAE04t1b1hHTr77EGhR9M5WzlhBVwl4Q1A="; + }; + + build-system = [ setuptools ]; + + dependencies = [ ruamel-yaml ]; + + pythonImportsCheck = [ "ruamel.yaml" ]; + + meta = with lib; { + description = "Add dump_to_string/dumps method that returns YAML document as string"; + homepage = "https://sourceforge.net/projects/ruamel-yaml-string/"; + license = licenses.mit; + maintainers = with maintainers; [ fbeffa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22129349db53..82fa2848eb79 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14334,6 +14334,8 @@ self: super: with self; { ruamel-yaml-clib = callPackage ../development/python-modules/ruamel-yaml-clib { }; + ruamel-yaml-string = callPackage ../development/python-modules/ruamel-yaml-string { }; + rubicon-objc = callPackage ../development/python-modules/rubicon-objc { }; rubymarshal = callPackage ../development/python-modules/rubymarshal { };