[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/13] gnu: Add python2-pathlib.
From: |
Leo Famulari |
Subject: |
[PATCH 08/13] gnu: Add python2-pathlib. |
Date: |
Thu, 3 Mar 2016 20:26:34 -0500 |
* gnu/packages/python.scm (python-pathlib, python2-pathlib): New variables.
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e9969f4..b148c7c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8276,3 +8276,37 @@ library.")
(package (inherit responses)
(native-inputs `(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs responses))))))
+
+(define-public python-pathlib
+ (package
+ (name "python-pathlib")
+ (version "1.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "pathlib" version))
+ (sha256
+ (base32
+ "17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _ (zero? (system* "python" "./test_pathlib.py")))))))
+ (home-page "https://pathlib.readthedocs.org/")
+ (synopsis "Object-oriented filesystem paths")
+ (description "Pathlib offers a set of classes to handle filesystem paths.
+It offers the following advantages over using string objects:
+
address@hidden
address@hidden No more cumbersome use of os and os.path functions. Everything
can
+be done easily through operators, attribute accesses, and method calls.
address@hidden Embodies the semantics of different path types. For example,
+comparing Windows paths ignores casing.
address@hidden Well-defined semantics, eliminating any inconsistencies or
+ambiguities (forward vs. backward slashes, etc.).
address@hidden enumerate\n")
+ (license license:expat)))
+
+(define-public python2-pathlib
+ (package-with-python2 python-pathlib))
--
2.6.3
- [PATCH 07/13] gnu: Add python-responses., (continued)
- [PATCH 07/13] gnu: Add python-responses., Leo Famulari, 2016/03/03
- [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/03
- Re: [PATCH 12/13] gnu: Add python-rarfile., Ricardo Wurmus, 2016/03/04
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/04
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/13
- Re: [PATCH 12/13] gnu: Add python-rarfile., Ricardo Wurmus, 2016/03/17
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/17
- Re: [PATCH 12/13] gnu: Add python-rarfile., Efraim Flashner, 2016/03/18
- Re: [PATCH 12/13] gnu: Add python-rarfile., Leo Famulari, 2016/03/18
[PATCH 09/13] gnu: Add python-mpd2., Leo Famulari, 2016/03/03
[PATCH 08/13] gnu: Add python2-pathlib.,
Leo Famulari <=
[PATCH 11/13] gnu: Add python2-unicodecsv., Leo Famulari, 2016/03/03
[PATCH 13/13] gnu: Add beets., Leo Famulari, 2016/03/03
- Re: [PATCH 13/13] gnu: Add beets., Leo Famulari, 2016/03/18
- Re: [PATCH 13/13] gnu: Add beets., Ludovic Courtès, 2016/03/18
- Re: [PATCH 13/13] gnu: Add beets., Mark H Weaver, 2016/03/25
- Re: [PATCH 13/13] gnu: Add beets., Leo Famulari, 2016/03/25
- Re: [PATCH 13/13] gnu: Add beets., Alex Griffin, 2016/03/25
- Re: [PATCH 13/13] gnu: Add beets., Leo Famulari, 2016/03/25
- Re: [PATCH 13/13] gnu: Add beets., Leo Famulari, 2016/03/25
- Re: [PATCH 13/13] gnu: Add beets., Ludovic Courtès, 2016/03/26