@@ -0,0 +1,28 @@
1+{ lib, python3Packages, fetchFromGitHub, imagemagick, feh }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "pywal";
5+ version = "2.0.5";
6+
7+ src = python3Packages.fetchPypi {
8+ inherit pname version;
9+ sha256 = "117f61db013409ee2657aab9230cc5c2cb2b428c17f7fbcf664909122962165e";
10+ };
11+
12+ # necessary for imagemagick to be found during tests
13+ buildInputs = [ imagemagick ];
14+
15+ makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ imagemagick feh ]}" ];
16+
17+ preCheck = ''
18+ mkdir tmp
19+ HOME=$PWD/tmp
20+ '';
21+
22+ meta = with lib; {
23+ description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3.";
24+ homepage = https://github.com/dylanaraps/pywal;
25+ license = licenses.mit;
26+ maintainers = with maintainers; [ Fresheyeball ];
27+ };
28+}