uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, flask
|
||||
, werkzeug
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-reverse-proxy-fix";
|
||||
version = "0.2.1";
|
||||
|
||||
# master fixes flask import syntax and has no major changes
|
||||
# new release requested: https://github.com/sublee/flask-silk/pull/6
|
||||
src = fetchFromGitHub {
|
||||
owner = "antarctica";
|
||||
repo = "flask-reverse-proxy-fix";
|
||||
rev = "v${version}";
|
||||
sha256 = "1jbr67cmnryn0igv05qkvqjwrwj2rsajvvjnv3cdkm9bkgb4h5k5";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's@werkzeug.contrib.fixers@werkzeug.middleware.proxy_fix@g' flask_reverse_proxy_fix/middleware/__init__.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
werkzeug
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python Flask middleware for applications running under a reverse proxy";
|
||||
maintainers = with maintainers; [ matthiasbeyer ];
|
||||
homepage = "https://github.com/antarctica/flask-reverse-proxy-fix";
|
||||
|
||||
license = {
|
||||
fullName = "Open Government Licence";
|
||||
url = "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue