[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: guix: Add a "pypi-uri" helper method.
From: |
Cyril Roelandt |
Subject: |
01/12: guix: Add a "pypi-uri" helper method. |
Date: |
Tue, 03 Nov 2015 20:39:25 +0000 |
steap pushed a commit to branch master
in repository guix.
commit 3009334e3b3c148d7a36c76952fbb32addfa2c07
Author: Cyril Roelandt <address@hidden>
Date: Sat Oct 10 22:50:34 2015 +0200
guix: Add a "pypi-uri" helper method.
* guix/download.scm (mirrors): New "pypi" mirror.
* guix/build-system/python.scm (pypi-uri): New method.
---
guix/build-system/python.scm | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm
index aeb04c8..1a5d9df 100644
--- a/guix/build-system/python.scm
+++ b/guix/build-system/python.scm
@@ -31,7 +31,8 @@
#:export (%python-build-system-modules
package-with-python2
python-build
- python-build-system))
+ python-build-system
+ pypi-uri))
;; Commentary:
;;
@@ -40,6 +41,13 @@
;;
;; Code:
+(define (pypi-uri name version)
+ "Return a URI string for the Python package hosted on the Python Package
+Index (PyPI) corresponding to NAME and VERSION."
+ (string-append "https://pypi.python.org/packages/source/"
+ (string-take name 1) "/" name "/"
+ name "-" version ".tar.gz"))
+
(define %python-build-system-modules
;; Build-side modules imported by default.
`((guix build python-build-system)
- branch master updated (f8ae32a -> 465b61f), Cyril Roelandt, 2015/11/03
- 04/12: gnu: Add python-mccabe 0.2.1, Cyril Roelandt, 2015/11/03
- 05/12: gnu: Add python-flake8-2.2.4, Cyril Roelandt, 2015/11/03
- 01/12: guix: Add a "pypi-uri" helper method.,
Cyril Roelandt <=
- 02/12: import: pypi: Use "pypi-uri" instead of building the URL manually., Cyril Roelandt, 2015/11/03
- 03/12: gnu: Update python-requests., Cyril Roelandt, 2015/11/03
- 06/12: gnu: Add python-hacking., Cyril Roelandt, 2015/11/03
- 07/12: gnu: Add python-oslosphinx., Cyril Roelandt, 2015/11/03
- 08/12: gnu: Add python-os-testr., Cyril Roelandt, 2015/11/03
- 09/12: gnu: paramiko: Move python-pycrypto to the propagated inputs., Cyril Roelandt, 2015/11/03
- 10/12: gnu: Add python-oslo.log., Cyril Roelandt, 2015/11/03
- 12/12: gnu: Add python-tempest-lib., Cyril Roelandt, 2015/11/03
- 11/12: gnu: python-oslotest: move mox3 to the propagated-inputs, Cyril Roelandt, 2015/11/03