at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 imagemagick, 6 feh, 7 isPy3k, 8}: 9 10buildPythonPackage rec { 11 pname = "pywal"; 12 version = "3.3.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg"; 18 }; 19 20 patches = [ 21 ./convert.patch 22 ./feh.patch 23 ]; 24 25 postPatch = '' 26 substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert" 27 substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh" 28 ''; 29 30 # Invalid syntax 31 disabled = !isPy3k; 32 33 preCheck = '' 34 mkdir tmp 35 HOME=$PWD/tmp 36 37 for f in tests/test_export.py tests/test_util.py ; do 38 substituteInPlace "$f" \ 39 --replace '/tmp/' "$TMPDIR/" 40 done 41 ''; 42 43 meta = with lib; { 44 description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3"; 45 mainProgram = "wal"; 46 homepage = "https://github.com/dylanaraps/pywal"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ Fresheyeball ]; 49 }; 50}