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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{ lib, buildPythonPackage, django, waitress }:
buildPythonPackage {
pname = "waitress-django";
version = "1.0.0";
src = ./.;
pythonPath = [ django waitress ];
doCheck = false;
meta = with lib; {
description = "A waitress WSGI server serving django";
license = licenses.mit;
maintainers = with maintainers; [ basvandijk ];
};
}

View file

@ -0,0 +1,12 @@
#!/usr/bin/env python
from distutils.core import setup
setup( name = "waitress-django"
, version = "1.0.0"
, description = "A waitress WSGI server serving django"
, author = "Bas van Dijk"
, author_email = "v.dijk.bas@gmail.com"
, package_dir = {"" : "src"}
, scripts = ["src/waitress-serve-django"]
)

View file

@ -0,0 +1,14 @@
#!/usr/bin/env python
import sys
from waitress import serve
from waitress.adjustments import Adjustments
import django
from django.core.handlers.wsgi import WSGIHandler
from django.contrib.staticfiles.handlers import StaticFilesHandler
if __name__ == "__main__":
kw, args = Adjustments.parse_args(sys.argv[1:])
django.setup()
# These arguments are specific to the runner, not waitress itself.
del kw['call'], kw['help']
serve(StaticFilesHandler(WSGIHandler()), **kw)