summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-06-29 19:13:33 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-06-29 19:28:18 +0200
commit27d17b1bac5c83e186ce59f567ca4faf1caac610 (patch)
tree0104e8916733ccf359ba6410774934b7bd73df2f /pkgs/tools/misc
parent184f8cc054ca1244aa26819f44543b97c4e44faa (diff)
downloadnixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar.gz
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar.bz2
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar.lz
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar.xz
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.tar.zst
nixlib-27d17b1bac5c83e186ce59f567ca4faf1caac610.zip
papis: pin python-dateutil==2.6.1
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/papis/default.nix28
1 files changed, 20 insertions, 8 deletions
diff --git a/pkgs/tools/misc/papis/default.nix b/pkgs/tools/misc/papis/default.nix
index 49c57ab8dc90..20fafff587c5 100644
--- a/pkgs/tools/misc/papis/default.nix
+++ b/pkgs/tools/misc/papis/default.nix
@@ -1,12 +1,24 @@
 { buildPythonApplication, lib, fetchFromGitHub, bashInteractive
-, argcomplete, arxiv2bib, beautifulsoup4, bibtexparser
-, configparser, dmenu-python, habanero, papis-python-rofi
-, pylibgen, prompt_toolkit, pyparser, pytest, python_magic
-, pyyaml, requests, unidecode, urwid, vobject, tkinter
-, vim
+, python3, vim
 }:
 
-buildPythonApplication rec {
+let
+  python = python3.override {
+    packageOverrides = self: super: {
+
+      # https://github.com/eventable/vobject/issues/112
+      python-dateutil = super.python-dateutil.overridePythonAttrs (oldAttrs: rec {
+        version = "2.6.1";
+        src = oldAttrs.src.override {
+          inherit version;
+          sha256 = "891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca";
+        };
+      });
+
+    };
+  };
+
+in python.pkgs.buildPythonApplication rec {
   pname = "papis";
   version = "0.5.3";
 
@@ -23,7 +35,7 @@ buildPythonApplication rec {
     patchShebangs tests
   '';
 
-  propagatedBuildInputs = [
+  propagatedBuildInputs = with python.pkgs; [
     argcomplete arxiv2bib beautifulsoup4 bibtexparser
     configparser dmenu-python habanero papis-python-rofi
     pylibgen prompt_toolkit pyparser python_magic pyyaml
@@ -31,7 +43,7 @@ buildPythonApplication rec {
     vim
   ];
 
-  checkInputs = [ pytest ];
+  checkInputs = with python.pkgs; [ pytest ];
 
   # Papis tries to create the config folder under $HOME during the tests
   checkPhase = ''