504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
40 lines
732 B
Nix
40 lines
732 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pillow
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fabulous";
|
|
version = "0.4.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jart";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4=";
|
|
};
|
|
|
|
patches = [
|
|
./relative_import.patch
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pillow
|
|
];
|
|
|
|
checkPhase = ''
|
|
for i in tests/*.py; do
|
|
${python.interpreter} $i
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Make the output of terminal applications look fabulous";
|
|
homepage = "https://jart.github.io/fabulous";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.symphorien ];
|
|
};
|
|
}
|