Skip to content

Commit

Permalink
Merge pull request #147779 from NixOS/backport-147751-to-release-21.11
Browse files Browse the repository at this point in the history
[Backport release-21.11] python3Packages.pywal: fix darwin hydra build
  • Loading branch information
risicle authored Nov 29, 2021
2 parents f753917 + 56710e1 commit b60abb7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions pkgs/development/python-modules/pywal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,29 @@ buildPythonPackage rec {
sha256 = "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg";
};

preCheck = ''
mkdir tmp
HOME=$PWD/tmp
'';

patches = [
./convert.patch
./feh.patch
];

# Invalid syntax
disabled = !isPy3k;

postPatch = ''
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
'';

# Invalid syntax
disabled = !isPy3k;

preCheck = ''
mkdir tmp
HOME=$PWD/tmp
for f in tests/test_export.py tests/test_util.py ; do
substituteInPlace "$f" \
--replace '/tmp/' "$TMPDIR/"
done
'';

meta = with lib; {
description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3";
homepage = "https://github.com/dylanaraps/pywal";
Expand Down

0 comments on commit b60abb7

Please sign in to comment.