From f4e392ce9252e67304b74289fef0568ac1d66ac6 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Tue, 30 Jan 2018 11:13:34 +0000 Subject: Gunicorn support with inotify --- gn/packages/genenetwork.scm | 3 ++- gn/packages/python.scm | 34 ++++++++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm index 705c511..ae49460 100644 --- a/gn/packages/genenetwork.scm +++ b/gn/packages/genenetwork.scm @@ -182,10 +182,11 @@ location of a putative QTL.") "0ji929xgzypyhchcfy9xa1sz04w322ibs2khc8s3qiddxjqdglrz")))) (propagated-inputs `( ;; propagated for development purposes ("python" ,python-2) ;; probably superfluous + ("coreutils" ,coreutils) ("git" ,git) + ("vim" ,vim) ("which" ,which) ("grep" ,grep) - ("inotify-tools" ,inotify-tools) ("r" ,r) ("r-ctl" ,r-ctl) ("r-phewas" ,r-phewas) diff --git a/gn/packages/python.scm b/gn/packages/python.scm index 9678504..848cf8d 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -112,8 +112,34 @@ functions.") (license license:expat)) ) +(define-public python-inotify ; guix candidate +(package + (name "python-inotify") + (version "0.2.9") + (source + (origin + (method url-fetch) + (uri (pypi-uri "inotify" version)) + (sha256 + (base32 + "043sbm9q8ca4fhn19knwpsxgzfgm5ik75m0bl7dp9hjy6p3v3zzn")))) + (build-system python-build-system) + (propagated-inputs + `(("inotify-tools" ,inotify-tools))) + (arguments `(#:tests? #f)) ;; No tests. + (home-page "https://pypi.python.org/pypi/inotify") + (synopsis + "Python inotify.") + (description + "Python inotify.") + (license license:gpl2)) +) + +(define-public python2-inotify + (package-with-python2 python-inotify)) + + (define-public gunicorn ; guix candidate - ; python-plotly, python-requests, python-pytz (package (name "gunicorn") (version "19.7.1") @@ -125,6 +151,10 @@ functions.") (base32 "08mnl5l1p47q5wk38d7mafnhsqk50yba0l9kvc2vwrx61jgidqgf")))) (build-system python-build-system) + ; (inputs + ; `(("python2-inotify" ,python2-inotify))) + (propagated-inputs + `(("inotify-tools" ,inotify-tools))) (arguments `( #:python ,python-2 ; GN2 is still python2 #:tests? #f)) ;; No tests. @@ -136,7 +166,7 @@ functions.") (license license:expat)) ) -(define-public python2-flask-sqlalchemy +(define-public python2-flask-sqlalchemy (package-with-python2 python-flask-sqlalchemy)) (define-public python-xlsxwriter ; guix ready -- cgit v1.2.3