Files
nixpkgs/pkgs/development/python-modules/art/default.nix
T
Michael Daniels 30420dabad treewide: drop figsoda as maintainer (part 2)
s/maintainers = with maintainers; [ figsoda ];/maintainers = with maintainers; [ ];/
2025-11-02 20:16:11 -05:00

44 lines
889 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "art";
version = "6.5";
pyproject = true;
src = fetchFromGitHub {
owner = "sepandhaghighi";
repo = "art";
tag = "v${version}";
hash = "sha256-ub+hvxYRZznql/GZjA6QXrdHUbM+QCVEYiQfQ6IOJKE=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "art" ];
# TypeError: art() missing 1 required positional argument: 'artname'
checkPhase = ''
runHook preCheck
$out/bin/art
$out/bin/art test
$out/bin/art test2
runHook postCheck
'';
meta = with lib; {
description = "ASCII art library for Python";
mainProgram = "art";
homepage = "https://github.com/sepandhaghighi/art";
changelog = "https://github.com/sepandhaghighi/art/blob/${src.tag}/CHANGELOG.md";
license = licenses.mit;
maintainers = [ ];
};
}