summary refs log tree commit diff
path: root/pkgs/tools/graphics/pywal
diff options
context:
space:
mode:
authorIsaac Shapira <fresheyeball@gmail.com>2018-04-06 01:57:20 -0600
committerRobert Schütz <rschuetz17@gmail.com>2018-04-06 09:57:20 +0200
commitff5baea979b81cd3324580a6e182a8019337fe7e (patch)
tree5775bc91fad8a2c94d6d9b684904bd0539af1e73 /pkgs/tools/graphics/pywal
parent098c851dcbed754361ae6bcb94aae519b27b8be8 (diff)
downloadnixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar.gz
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar.bz2
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar.lz
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar.xz
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.tar.zst
nixpkgs-ff5baea979b81cd3324580a6e182a8019337fe7e.zip
pywal: init at 2.0.5 (#38443)
Diffstat (limited to 'pkgs/tools/graphics/pywal')
-rw-r--r--pkgs/tools/graphics/pywal/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/pywal/default.nix b/pkgs/tools/graphics/pywal/default.nix
new file mode 100644
index 00000000000..95f7c547b55
--- /dev/null
+++ b/pkgs/tools/graphics/pywal/default.nix
@@ -0,0 +1,28 @@
+{ lib, python3Packages, fetchFromGitHub, imagemagick, feh }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "pywal";
+  version = "2.0.5";
+
+  src = python3Packages.fetchPypi {
+    inherit pname version;
+    sha256 = "117f61db013409ee2657aab9230cc5c2cb2b428c17f7fbcf664909122962165e";
+  };
+
+  # 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 ];
+  };
+}