pythonPackages.flask-autoindex: 0.6 -> 2018-06-28

Fixes the build with current flask, which deprecated the old import
syntax.
This commit is contained in:
Timo Kaufmann 2018-06-28 12:48:19 +02:00
parent 224f73b75a
commit 7df80c4e02

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchpatch , fetchFromGitHub
, fetchPypi
, flask , flask
, flask-silk , flask-silk
, future , future
@ -9,11 +8,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "Flask-AutoIndex"; pname = "Flask-AutoIndex";
version = "0.6"; version = "2018-06-28";
src = fetchPypi { # master fixes various issues (binary generation, flask syntax) and has no
inherit pname version; # major changes
sha256 = "19b10mb1nrqfjyafki6wnrbn8mqi30bbyyiyvp5xssc74pciyfqs"; # new release requested: https://github.com/sublee/flask-autoindex/issues/38
src = fetchFromGitHub {
owner = "sublee";
repo = "flask-autoindex";
rev = "e3d449a89d56bf4c171c7c8d90af028e579782cf";
sha256 = "0bwq2nid4h8vrxspggk064vra4wd804cl2ryyx4j2d1dyywmgjgy";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -22,15 +26,6 @@ buildPythonPackage rec {
future 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; { meta = with stdenv.lib; {
description = "The mod_autoindex for Flask"; description = "The mod_autoindex for Flask";
longDescription = '' longDescription = ''