diff options
author | figsoda <figsoda@pm.me> | 2023-05-31 09:53:23 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-05-31 10:25:33 -0400 |
commit | a925e0c4abe32c717e79b9961edda3beccc96d52 (patch) | |
tree | b811e2403ee8f92024dca5d27a47d0f5e7ee903d /pkgs/development/python-modules/art | |
parent | b8c26ab7098c4d95a19eba1174f68afc0bcc179a (diff) |
python310Packages.art: init at 5.9
https://github.com/sepandhaghighi/art
Diffstat (limited to 'pkgs/development/python-modules/art')
-rw-r--r-- | pkgs/development/python-modules/art/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/art/default.nix b/pkgs/development/python-modules/art/default.nix new file mode 100644 index 0000000000000..be7eef1170372 --- /dev/null +++ b/pkgs/development/python-modules/art/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "art"; + version = "5.9"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "sepandhaghighi"; + repo = "art"; + rev = "v${version}"; + hash = "sha256-3fX0kYYyeJ9tHX8/+hlv5aRE6LujXW915N5Ov6Q+EW8="; + }; + + 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"; + homepage = "https://github.com/sepandhaghighi/art"; + changelog = "https://github.com/sepandhaghighi/art/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} |