From 717e0dcb77262f438f89c5f4087ea4c41ac48c66 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Thu, 30 May 2024 21:10:27 +0200 Subject: [PATCH] python312Packages.dahlia: init at 2.3.2 --- .../python-modules/dahlia/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/dahlia/default.nix diff --git a/pkgs/development/python-modules/dahlia/default.nix b/pkgs/development/python-modules/dahlia/default.nix new file mode 100644 index 000000000000..473c2afda499 --- /dev/null +++ b/pkgs/development/python-modules/dahlia/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + testers, + dahlia +}: + +buildPythonPackage rec { + pname = "dahlia"; + version = "2.3.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "dahlia-lib"; + repo = "dahlia"; + rev = "refs/tags/${version}"; + hash = "sha256-KQOfTTYA/Jt0UbZ1VKqETwYHtMlOuS2lY0755gqFgxg="; + }; + + build-system = [ poetry-core ]; + pythonImportsCheck = [ "dahlia" ]; + + passthru.tests.version = testers.testVersion { + package = dahlia; + command = "${lib.getExe dahlia} --version"; + version = "${version}"; + }; + + meta = with lib; { + changelog = "https://github.com/dahlia-lib/dahlia/blob/${src.rev}/CHANGELOG.md"; + description = "A simple text formatting package, inspired by the game Minecraft"; + license = licenses.mit; + homepage = "https://github.com/dahlia-lib/dahlia"; + maintainers = with maintainers; [ sigmanificient ]; + mainProgram = "dahlia"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16b8ff5cb46d..9f8331721ec6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2698,6 +2698,8 @@ self: super: with self; { daff = callPackage ../development/python-modules/daff { }; + dahlia = callPackage ../development/python-modules/dahlia { }; + daiquiri = callPackage ../development/python-modules/daiquiri { }; dalle-mini = callPackage ../development/python-modules/dalle-mini { };