nixpkgs/pkgs/tools/graphics/pywal/default.nix

29 lines
753 B
Nix
Raw Normal View History

{ lib, python3Packages, imagemagick, feh }:
2018-04-06 07:57:20 +00:00
python3Packages.buildPythonApplication rec {
pname = "pywal";
2018-08-12 18:11:46 +00:00
version = "3.1.0";
2018-04-06 07:57:20 +00:00
src = python3Packages.fetchPypi {
inherit pname version;
2018-08-12 18:11:46 +00:00
sha256 = "1i4i9jjnm4f0zhz4nqbb4253517w33bsh5f246n5930hwrr9xn76";
2018-04-06 07:57:20 +00:00
};
# necessary for imagemagick to be found during tests
buildInputs = [ imagemagick ];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ imagemagick feh ]}" ];
preCheck = ''
mkdir tmp
HOME=$PWD/tmp
'';
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 ];
};
}