2019-01-22 15:16:59 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:
|
2018-04-06 07:57:20 +00:00
|
|
|
|
2019-01-22 15:16:59 +00:00
|
|
|
buildPythonPackage rec {
|
2018-04-06 07:57:20 +00:00
|
|
|
pname = "pywal";
|
2019-02-09 11:48:43 +00:00
|
|
|
version = "3.3.0";
|
2018-04-06 07:57:20 +00:00
|
|
|
|
2019-01-22 15:16:59 +00:00
|
|
|
src = fetchPypi {
|
2018-04-06 07:57:20 +00:00
|
|
|
inherit pname version;
|
2019-02-09 11:48:43 +00:00
|
|
|
sha256 = "1drha9kshidw908k7h3gd9ws2bl64ms7bjcsa83pwb3hqa9bkspg";
|
2018-04-06 07:57:20 +00:00
|
|
|
};
|
|
|
|
|
2018-12-26 10:57:27 +00:00
|
|
|
patches = [
|
|
|
|
./convert.patch
|
2018-12-26 11:57:19 +00:00
|
|
|
./feh.patch
|
2018-12-26 10:57:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pywal/backends/wal.py --subst-var-by convert "${imagemagick}/bin/convert"
|
2018-12-26 11:57:19 +00:00
|
|
|
substituteInPlace pywal/wallpaper.py --subst-var-by feh "${feh}/bin/feh"
|
2018-12-26 10:57:27 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-28 17:40:08 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2018-04-06 07:57:20 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dylanaraps/pywal";
|
2018-04-06 07:57:20 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ Fresheyeball ];
|
|
|
|
};
|
|
|
|
}
|