1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4}:
5
6buildPythonPackage rec {
7 pname = "art";
8 version = "6.1";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "sepandhaghighi";
13 repo = "art";
14 rev = "v${version}";
15 hash = "sha256-RJexYOGWwAwxQ7lWGgXzFSR2aly1twB9pC4QFs5m7k8=";
16 };
17
18 pythonImportsCheck = [ "art" ];
19
20 # TypeError: art() missing 1 required positional argument: 'artname'
21 checkPhase = ''
22 runHook preCheck
23
24 $out/bin/art
25 $out/bin/art test
26 $out/bin/art test2
27
28 runHook postCheck
29 '';
30
31 meta = with lib; {
32 description = "ASCII art library for Python";
33 homepage = "https://github.com/sepandhaghighi/art";
34 changelog = "https://github.com/sepandhaghighi/art/blob/${src.rev}/CHANGELOG.md";
35 license = licenses.mit;
36 maintainers = with maintainers; [ figsoda ];
37 };
38}