mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
dc8056398d
Diff: https://github.com/sepandhaghighi/art/compare/v6.0...v6.1 Changelog: https://github.com/sepandhaghighi/art/blob/v6.1/CHANGELOG.md
39 lines
842 B
Nix
39 lines
842 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "art";
|
|
version = "6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sepandhaghighi";
|
|
repo = "art";
|
|
rev = "v${version}";
|
|
hash = "sha256-RJexYOGWwAwxQ7lWGgXzFSR2aly1twB9pC4QFs5m7k8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|