about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-autoindex
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-06-28 12:48:19 +0200
committerTimo Kaufmann <timokau@zoho.com>2018-06-30 01:20:46 +0200
commit7df80c4e021b7f7b743fe2b6d0c609b9e7dd47c5 (patch)
tree58aa7e4104672eea0d1137029c914bdc6656268d /pkgs/development/python-modules/flask-autoindex
parent224f73b75a10a658d5d4f9beecd475c53e7692c7 (diff)
pythonPackages.flask-autoindex: 0.6 -> 2018-06-28
Fixes the build with current flask, which deprecated the old import
syntax.
Diffstat (limited to 'pkgs/development/python-modules/flask-autoindex')
-rw-r--r--pkgs/development/python-modules/flask-autoindex/default.nix25
1 files changed, 10 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/flask-autoindex/default.nix b/pkgs/development/python-modules/flask-autoindex/default.nix
index 95e457de81d39..f36d7fbca1c47 100644
--- a/pkgs/development/python-modules/flask-autoindex/default.nix
+++ b/pkgs/development/python-modules/flask-autoindex/default.nix
@@ -1,7 +1,6 @@
 { stdenv
 , buildPythonPackage
-, fetchpatch
-, fetchPypi
+, fetchFromGitHub
 , flask
 , flask-silk
 , future
@@ -9,11 +8,16 @@
 
 buildPythonPackage rec {
   pname = "Flask-AutoIndex";
-  version = "0.6";
+  version = "2018-06-28";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "19b10mb1nrqfjyafki6wnrbn8mqi30bbyyiyvp5xssc74pciyfqs";
+  # master fixes various issues (binary generation, flask syntax) and has no
+  # major changes
+  # new release requested: https://github.com/sublee/flask-autoindex/issues/38
+  src = fetchFromGitHub {
+    owner = "sublee";
+    repo = "flask-autoindex";
+    rev = "e3d449a89d56bf4c171c7c8d90af028e579782cf";
+    sha256 = "0bwq2nid4h8vrxspggk064vra4wd804cl2ryyx4j2d1dyywmgjgy";
   };
 
   propagatedBuildInputs = [
@@ -22,15 +26,6 @@ buildPythonPackage rec {
     future
   ];
 
-  patches = [
-    # fix generated binary, see https://github.com/sublee/flask-autoindex/pull/32
-    (fetchpatch {
-      name = "fix_binary.patch";
-      url = "https://github.com/sublee/flask-autoindex/pull/32.patch";
-      sha256 = "1v2r0wvi7prhipjq89774svv6aqj0a13mdfj07pdlkpzfbf029dn";
-    })
-  ];
-
   meta = with stdenv.lib; {
     description = "The mod_autoindex for Flask";
     longDescription = ''