depot/third_party/nixpkgs/pkgs/development/python-modules/art/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

43 lines
925 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "art";
version = "6.3";
pyproject = true;
src = fetchFromGitHub {
owner = "sepandhaghighi";
repo = "art";
rev = "refs/tags/v${version}";
hash = "sha256-9kz6uyLdcrQqgWzT9g2qI9a+IituY/OFmbot+HlQsCE=";
};
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.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}