depot/third_party/nixpkgs/pkgs/development/python-modules/fabulous/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
pillow,
setuptools,
python,
}:
buildPythonPackage rec {
pname = "fabulous";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jart";
repo = pname;
rev = version;
hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4=";
};
patches = [
./relative_import.patch
# https://github.com/jart/fabulous/pull/22
(fetchpatch2 {
url = "https://github.com/jart/fabulous/commit/5779f2dfbc88fd81b5b5865247913d4775e67959.patch?full_index=1";
hash = "sha256-miWFt4vDpwWhSUgnWDjWUXoibijcDa1c1dDOSkfWoUg=";
})
];
build-system = [ setuptools ];
dependencies = [ pillow ];
checkPhase = ''
for i in tests/*.py; do
${python.interpreter} $i
done
'';
meta = {
description = "Make the output of terminal applications look fabulous";
homepage = "https://jart.github.io/fabulous";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.symphorien ];
};
}