Skip to content

Commit

Permalink
python312Packages.fabulous: Fix tests on python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Jul 19, 2024
1 parent c9e3709 commit e9277a6
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions pkgs/development/python-modules/fabulous/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
pillow,
setuptools,
python,
}:

buildPythonPackage rec {
pname = "fabulous";
version = "0.4.0";
format = "setuptools";
pyproject = true;

src = fetchFromGitHub {
owner = "jart";
Expand All @@ -18,20 +20,29 @@ buildPythonPackage rec {
hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4=";
};

patches = [ ./relative_import.patch ];
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=";
})
];

propagatedBuildInputs = [ pillow ];
build-system = [ setuptools ];

dependencies = [ pillow ];

checkPhase = ''
for i in tests/*.py; do
${python.interpreter} $i
done
'';

meta = with lib; {
meta = {
description = "Make the output of terminal applications look fabulous";
homepage = "https://jart.github.io/fabulous";
license = licenses.asl20;
maintainers = [ maintainers.symphorien ];
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.symphorien ];
};
}

0 comments on commit e9277a6

Please sign in to comment.