nixpkgs/pkgs/development/python-modules/pywal/default.nix
R. RyanTM 9a1f8e0879 python37Packages.pywal: 3.2.1 -> 3.3.0 (#55169)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-pywal/versions
2019-02-09 12:48:43 +01:00

37 lines
862 B
Nix

{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }:
buildPythonPackage rec {
pname = "pywal";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
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"
'';
meta = with lib; {
description = "Generate and change colorschemes on the fly. A 'wal' rewrite in Python 3.";
homepage = https://github.com/dylanaraps/pywal;
license = licenses.mit;
maintainers = with maintainers; [ Fresheyeball ];
};
}