depot/third_party/nixpkgs/pkgs/development/python-modules/dahlia/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
946 B
Nix

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