Files
nixpkgs/pkgs/development/python-modules/dahlia/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

40 lines
944 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 = "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";
};
}