Merge pull request #315962 from Sigmanificient/dahlia

This commit is contained in:
Sandro 2024-06-05 17:04:12 +02:00 committed by GitHub
commit 52694a4be3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

@ -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";
};
}

@ -2704,6 +2704,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 { };