From ecd68c53a6c74aed2c75def91624123ca7c08ab0 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 15 Oct 2016 21:27:35 -0400 Subject: gnu: python-rsa: Update to 3.4.2. * gnu/packages/python.scm (python-rsa, python2-rsa): Update to 3.4.2. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 57dcd832f3..926f6ca287 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7770,14 +7770,14 @@ text.") (define-public python-rsa (package (name "python-rsa") - (version "3.2") + (version "3.4.2") (source (origin (method url-fetch) (uri (pypi-uri "rsa" version)) (sha256 (base32 - "0xwp929g7lvb1sghxfpqlxvgg96qcwqdbhh27sjplx30n3xp3wrh")))) + "1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5")))) (build-system python-build-system) (inputs `(("python-pyasn1" ,python-pyasn1) -- cgit v1.2.3 From e09f952d9f08f620b1921e7797c621e14eb637f8 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 15 Oct 2016 21:45:43 -0400 Subject: gnu: python-botocore: Update to 1.4.62. * gnu/packages/python.scm (python-botocore, python2-botocore): Update to 1.4.62. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 926f6ca287..9153ad4dc2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7877,14 +7877,14 @@ document.") (define-public python-botocore (package (name "python-botocore") - (version "1.3.17") + (version "1.4.62") (source (origin (method url-fetch) (uri (pypi-uri "botocore" version)) (sha256 (base32 - "08vpvdixx1c1lfv6vzjig68bpiir7wfyhzf49ysxgvhbprg5ra0w")))) + "1zxczlwqy9bl27d9bc5x99mb5mcsxm350240lp5nx7014xb311lj")))) (build-system python-build-system) (inputs `(("python-dateutil" ,python-dateutil-2) -- cgit v1.2.3 From 94cffc6386d2f4d5e8246cf13149892f2c35bea5 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 15 Oct 2016 21:45:07 -0400 Subject: gnu: Add python-s3transfer. * gnu/packages/python.scm (python-s3transfer, python2-s3transfer): New variable. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9153ad4dc2..a618dfe3b8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11058,3 +11058,34 @@ with an associated set of resolve methods that know how to fetch data.") provide extendible implementations of common aspects of a cloud so that you can focus on building massively scalable web applications.") (license license:expat))) + +(define-public python-s3transfer + (package + (name "python-s3transfer") + (version "0.1.8") + (source (origin + (method url-fetch) + (uri (pypi-uri "s3transfer" version)) + (sha256 + (base32 + "1jivjkp3xqif9gzr5fiq28jsskmh50vzzd7ldsb4rbyiw1iyv3hy")))) + (build-system python-build-system) + (native-inputs + `(("python-docutils" ,python-docutils))) + (inputs + `(("python-botocore" ,python-botocore))) + (synopsis "Amazon S3 Transfer Manager") + (description "S3transfer is a Python library for managing Amazon S3 +transfers.") + (home-page "https://github.com/boto/s3transfer") + (license license:asl2.0) + (properties `((python2-variant . ,(delay python2-s3transfer)))))) + +(define-public python2-s3transfer + (let ((base (package-with-python2 (strip-python2-variant python-s3transfer)))) + (package + (inherit base) + (native-inputs + `(("python2-futures" ,python2-futures) + ("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From d5ccf71ec6c0b384fb490e3783772c698866481b Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 15 Oct 2016 21:46:34 -0400 Subject: gnu: awscli: Update to 1.11.5. * gnu/packages/python.scm (awscli): Update to 1.11.5. [source]: Use pypi-uri. [inputs]: Add python-s3transfer. --- gnu/packages/python.scm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a618dfe3b8..4b0e5b71ce 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7907,16 +7907,14 @@ interface to the Amazon Web Services (AWS) API.") (define-public awscli (package (name "awscli") - (version "1.9.17") + (version "1.11.5") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/a/awscli/awscli-" - version ".tar.gz")) + (uri (pypi-uri name version)) (sha256 (base32 - "1nj7jqvlpq57hfhby1njsbf8303gapa3njc4dramr6p3ffzvfi2i")))) + "0lclasm0wnayd3b8zl9l91i32nbgrhh0ncf9lksss4cv0myfwmfg")))) (build-system python-build-system) (inputs `(("python-colorama" ,python-colorama) @@ -7928,7 +7926,8 @@ interface to the Amazon Web Services (AWS) API.") ("python-sphinx" ,python-sphinx) ("python-tox" ,python-tox) ("python-wheel" ,python-wheel) - ("python-botocore" ,python-botocore))) + ("python-botocore" ,python-botocore) + ("python-s3transfer" ,python-s3transfer))) (home-page "http://aws.amazon.com/cli/") (synopsis "Command line client for AWS") (description "AWS CLI provides a unified command line interface to the -- cgit v1.2.3 From 8ab59181a423542c34170e049e06f1a1377eb202 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Thu, 20 Oct 2016 09:52:02 +0200 Subject: gnu: Add python-setproctitle and python2-setproctitle. * gnu/packages/python.scm (python-setproctitle, python2-setproctitle): New variables. --- gnu/packages/python.scm | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4b0e5b71ce..268dd513e3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11088,3 +11088,62 @@ transfers.") `(("python2-futures" ,python2-futures) ("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-setproctitle +(package + (name "python-setproctitle") + (version "1.1.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "setproctitle" version)) + (sha256 + (base32 + "163kplw9dcrw0lffq1bvli5yws3rngpnvrxrzdw89pbphjjvg0v2")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-before 'check 'patch-Makefile + ;; Stricly this is only required for the python2 variant. + ;; But adding a phase in an inherited package seems to be + ;; cumbersum. So we patch even for python3. + (lambda _ + (let ((nose (assoc-ref %build-inputs "python2-nose"))) + (when nose + (substitute* "Makefile" + (("\\$\\(PYTHON\\) [^ ]which nosetests[^ ] ") + (string-append nose "/bin/nosetests ")))) + #t))) + (replace 'check + (lambda _ + (setenv "PYTHON" (or (which "python3") (which "python"))) + (setenv "PYCONFIG" (or (which "python3-config") + (which "python-config"))) + (setenv "CC" "gcc") + ;; No need to extend PYTHONPATH to find the built package, since + ;; the Makefile will build anyway + (zero? (system* "make" "check"))))))) + (native-inputs + `(("procps" ,procps))) ; required for tests + (home-page + "https://github.com/dvarrazzo/py-setproctitle") + (synopsis + "Setproctitle implementation for Python to customize the process title") + (description "The library allows a process to change its title (as displayed +by system tools such as ps and top). + +Changing the title is mostly useful in multi-process systems, for +example when a master process is forked: changing the children's title +allows to identify the task each process is busy with. The technique +is used by PostgreSQL and the OpenSSH Server for example.") + (license license:bsd-3) + (properties `((python2-variant . ,(delay python2-setproctitle)))))) + +(define-public python2-setproctitle + (let ((base (package-with-python2 + (strip-python2-variant python-setproctitle)))) + (package + (inherit base) + (native-inputs `(("python2-nose" ,python2-nose) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From b7703c8131f377a6286c3f888e7d865ad2c230b8 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Thu, 13 Oct 2016 11:11:42 +0200 Subject: gnu: Add python2-pathlib2. Adding only the Python 2 variant, since for Python 3 our minimum version is 3.4 which already includes this package as part of the standard library. gnu/packages/python.scm (python2-pathlib2): New variable. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 268dd513e3..ca109faf69 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8887,6 +8887,42 @@ anymore.") (define-public python2-pathlib (package-with-python2 python-pathlib)) +(define-public python2-pathlib2 + (package + (name "python2-pathlib2") + (version "2.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pathlib2" version)) + (sha256 + (base32 + "0p050msg5c8d0kadv702jnfshaxrb0il765cpkgnhn6mq5hakcyy")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2)) + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ("python2-six" ,python2-six))) + (home-page "http://pypi.python.org/pypi/pathlib2/") + (synopsis "Object-oriented file system paths - backport of standard +pathlib module") + (description "The goal of pathlib2 is to provide a backport of standard +pathlib module which tracks the standard library module, so all the newest +features of the standard pathlib can be used also on older Python versions. + +Pathlib offers a set of classes to handle file system paths. It offers the +following advantages over using string objects: + +@enumerate +@item No more cumbersome use of os and os.path functions. Everything can +be done easily through operators, attribute accesses, and method calls. +@item Embodies the semantics of different path types. For example, +comparing Windows paths ignores casing. +@item Well-defined semantics, eliminating any inconsistencies or +ambiguities (forward vs. backward slashes, etc.). +@end enumerate") + (license license:expat))) + (define-public python-jellyfish (package (name "python-jellyfish") -- cgit v1.2.3 From 162e42d8c0664f3730be33e8a9526e07a4218254 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sun, 25 Sep 2016 22:23:34 +0200 Subject: gnu: Add python-validictory and python2-validictory. * gnu/packages/python.scm (python-validictory, python2-validictory): New variables. --- gnu/packages/python.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ca109faf69..9019fc3b35 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11183,3 +11183,46 @@ is used by PostgreSQL and the OpenSSH Server for example.") (inherit base) (native-inputs `(("python2-nose" ,python2-nose) ,@(package-native-inputs base)))))) + +(define-public python-validictory + (package + (name "python-validictory") + (version "1.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "validictory" version)) + (sha256 + (base32 + "1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'bootstrap + ;; Move the tests out of the package directory to avoid + ;; packaging them. + (lambda* _ + (rename-file "validictory/tests" "tests") + (delete-file "tests/__init__.py"))) + (replace 'check + (lambda _ + ;; Extend PYTHONPATH so the built package will be found. + (setenv "PYTHONPATH" + (string-append (getcwd) "/build/lib:" + (getenv "PYTHONPATH"))) + (zero? (system* "py.test" "-vv" ))))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (home-page + "https://github.com/jamesturk/validictory") + (synopsis "General purpose Python data validator") + (description "It allows validation of arbitrary Python data structures. + +The schema format is based on the JSON Schema +proposal (http://json-schema.org), so combined with json the library is also +useful as a validator for JSON data.") + (license license:expat))) + +(define-public python2-validictory + (package-with-python2 python-validictory)) -- cgit v1.2.3 From 7ca6830482d799677030c2e1631c54754f143808 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 22 Oct 2016 22:25:10 +0300 Subject: gnu: python2-validictory: Add missing input. * gnu/packages/python.scm (python2-validictory)[native-inputs]: Add python2-setuptools. (python-validictory)[properties]: New field. --- gnu/packages/python.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9019fc3b35..c3bb28af56 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11222,7 +11222,13 @@ is used by PostgreSQL and the OpenSSH Server for example.") The schema format is based on the JSON Schema proposal (http://json-schema.org), so combined with json the library is also useful as a validator for JSON data.") - (license license:expat))) + (license license:expat) + (properties `((python2-variant . ,(delay python2-validictory)))))) (define-public python2-validictory - (package-with-python2 python-validictory)) + (let ((base (package-with-python2 + (strip-python2-variant python-validictory)))) + (package + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) -- cgit v1.2.3 From 0990edfecb5311f96c2200372710b9e4a70d2c5e Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 20 Oct 2016 23:45:36 +0200 Subject: gnu: Add python-aniso8601. * gnu/packages/python.scm (python-aniso8601): New variable. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c3bb28af56..b3002235ca 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11232,3 +11232,25 @@ useful as a validator for JSON data.") (inherit base) (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) + +(define-public python-aniso8601 + (package + (name "python-aniso8601") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aniso8601" version)) + (sha256 + (base32 + "1k5mjg9iqbjfslb5prrsfz7dhlvi6s35p1jxq8dm87w1b7dn5i2g")))) + (build-system python-build-system) + (propagated-inputs + `(("python-dateutil-2" ,python-dateutil-2))) + (home-page + "https://bitbucket.org/nielsenb/aniso8601") + (synopsis + "Python library for parsing ISO 8601 strings") + (description + "This package contains a library for parsing ISO 8601 datetime strings.") + (license license:bsd-3))) -- cgit v1.2.3 From 999d964d64a57eed7ce5790f1194118bdac5aae4 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 20 Oct 2016 23:45:37 +0200 Subject: gnu: Add python-flask-restful. * gnu/packages/python.scm (python-flask-restful): New variable. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b3002235ca..80335c46b6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11254,3 +11254,34 @@ useful as a validator for JSON data.") (description "This package contains a library for parsing ISO 8601 datetime strings.") (license license:bsd-3))) + +(define-public python-flask-restful + (package + (name "python-flask-restful") + (version "0.3.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-RESTful" version)) + (sha256 + (base32 + "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c")))) + (build-system python-build-system) + (propagated-inputs + `(("python-aniso8601" ,python-aniso8601) + ("python-flask" ,python-flask) + ("python-pycrypto" ,python-pycrypto) + ("python-pytz" ,python-pytz))) + (native-inputs + `(;; Optional dependency of Flask. Tests need it. + ("python-blinker" ,python-blinker) + ("python-mock" ,python-mock) ; For tests + ("python-nose" ,python-nose) ; For tests + ("python-sphinx" ,python-sphinx))) + (home-page + "https://www.github.com/flask-restful/flask-restful/") + (synopsis + "Flask module for creating REST APIs") + (description + "This package contains a Flask module for creating REST APIs.") + (license license:bsd-3))) -- cgit v1.2.3 From 31288222d4aaf49e891e24b651c9cad5198026e4 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 20 Oct 2016 23:45:38 +0200 Subject: gnu: Add python-flask-basicauth. * gnu/packages/python.scm (python-flask-basicauth): New variable. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 80335c46b6..57d09f9978 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11285,3 +11285,25 @@ useful as a validator for JSON data.") (description "This package contains a Flask module for creating REST APIs.") (license license:bsd-3))) + +(define-public python-flask-basicauth + (package + (name "python-flask-basicauth") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-BasicAuth" version)) + (sha256 + (base32 + "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask))) + (home-page + "https://github.com/jpvanhal/flask-basicauth") + (synopsis + "HTTP basic access authentication for Flask") + (description + "This package provides HTTP basic access authentication for Flask.") + (license license:bsd-3))) -- cgit v1.2.3 From 903276d066ab9733c253d2a15b7ae135ef2ef836 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 20 Oct 2016 23:45:39 +0200 Subject: gnu: Add python-flask-sqlalchemy. * gnu/packages/python.scm (python-flask-sqlalchemy): New variable. --- gnu/packages/python.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 57d09f9978..24073687d0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11307,3 +11307,26 @@ useful as a validator for JSON data.") (description "This package provides HTTP basic access authentication for Flask.") (license license:bsd-3))) + +(define-public python-flask-sqlalchemy + (package + (name "python-flask-sqlalchemy") + (version "2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Flask-SQLAlchemy" version)) + (sha256 + (base32 + "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-sqlalchemy" ,python-sqlalchemy))) + (home-page + "http://github.com/mitsuhiko/flask-sqlalchemy") + (synopsis + "Module adding SQLAlchemy support to your Flask application") + (description + "This package adds SQLAlchemy support to your Flask application.") + (license license:bsd-3))) -- cgit v1.2.3