about summary refs log tree commit diff
path: root/pkgs/tools/misc/pubs
diff options
context:
space:
mode:
authorWill Dietz <github@wdtz.org>2019-01-08 10:08:12 -0600
committerRobert Schütz <rschuetz17@gmail.com>2019-01-08 17:08:12 +0100
commit3ace9a76167a12aafd8caa96ce493691c02f7f01 (patch)
treec62c90ace48290f8c9874e930361c7df42c4a7c2 /pkgs/tools/misc/pubs
parent2c9de98dbaddc25520296ad22c55eae961cb21a3 (diff)
pubs: 0.7.0 -> 0.8.2 (#53658)
Diffstat (limited to 'pkgs/tools/misc/pubs')
-rw-r--r--pkgs/tools/misc/pubs/default.nix37
1 files changed, 6 insertions, 31 deletions
diff --git a/pkgs/tools/misc/pubs/default.nix b/pkgs/tools/misc/pubs/default.nix
index c9ab32035de4a..393300ddd9e96 100644
--- a/pkgs/tools/misc/pubs/default.nix
+++ b/pkgs/tools/misc/pubs/default.nix
@@ -1,46 +1,21 @@
-{ stdenv, fetchFromGitHub, python3 }:
+{ stdenv, fetchFromGitHub, python3Packages }:
 
-let
-  python3Packages = (python3.override {
-    packageOverrides = self: super: {
-      # https://github.com/pubs/pubs/issues/131
-      pyfakefs = super.pyfakefs.overridePythonAttrs (oldAttrs: rec {
-        version = "3.3";
-        src = self.fetchPypi {
-          pname = "pyfakefs";
-          inherit version;
-          sha256 = "e3e198dea5e0d5627b73ba113fd0b139bb417da6bc15d920b2c873143d2f12a6";
-        };
-        postPatch = "";
-        doCheck = false;
-      });
-    };
-  }).pkgs;
-
-in python3Packages.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   pname = "pubs";
-  version = "0.7.0";
+  version = "0.8.2";
 
   src = fetchFromGitHub {
     owner = "pubs";
     repo = "pubs";
     rev = "v${version}";
-    sha256 = "0n5wbjx9wqy6smfg625mhma739jyg7c92766biaiffp0a2bzr475";
+    sha256 = "16zwdqfbmlla6906g3a57a4nj8wnl11fq78r20qms717bzv211j0";
   };
 
   propagatedBuildInputs = with python3Packages; [
-    dateutil configobj bibtexparser pyyaml requests beautifulsoup4
+    argcomplete dateutil configobj feedparser bibtexparser pyyaml requests six beautifulsoup4
   ];
 
-  checkInputs = with python3Packages; [ pyfakefs ddt ];
-
-  preCheck = ''
-    # API tests require networking
-    rm tests/test_apis.py
-
-    # pyfakefs works weirdly in the sandbox
-    export HOME=/
-  '';
+  checkInputs = with python3Packages; [ pyfakefs mock ddt ];
 
   meta = with stdenv.lib; {
     description = "Command-line bibliography manager";