[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/46: gnu: Add python-atpublic.
From: |
guix-commits |
Subject: |
01/46: gnu: Add python-atpublic. |
Date: |
Tue, 21 Jul 2020 08:49:32 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit a8f9b9380d9e3c3e77abaa1c7aecd0fb577c6add
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 10:18:25 2020 +0300
gnu: Add python-atpublic.
* gnu/packages/python-check.scm (python-atpublic): New variable.
---
gnu/packages/python-check.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 09eb253..52f53f5 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -454,3 +454,37 @@ analysing code quality.")
(description "This package provides a library for replying fake data to
Python software under test, when they make an HTTP query.")
(license license:asl2.0)))
+
+(define-public python-atpublic
+ (package
+ (name "python-atpublic")
+ (version "1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "atpublic" version))
+ (sha256
+ (base32
+ "0i3sbxkdlbb4560rrlmwwd5y4ps7k73lp4d8wnmd7ag9k426gjkx"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'enable-c-implementation
+ (lambda _
+ (setenv "ATPUBLIC_BUILD_EXTENSION" "yes")
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "python" "-m" "nose2" "-v"))))))
+ (native-inputs
+ `(("python-nose2" ,python-nose2)))
+ (home-page "https://public.readthedocs.io/")
+ (synopsis "@code{@@public} decorator for populating @code{__all__}")
+ (description
+ "This Python module adds a @code{@@public} decorator and function which
+populates a module's @code{__all__} and optionally the module globals. With
+it, the declaration of a name's public export semantics are not separated from
+the implementation of that name.")
+ (license (list license:asl2.0
+ license:lgpl3)))) ; only for setup_helpers.py
- branch master updated (938bb06 -> faec049), guix-commits, 2020/07/21
- 01/46: gnu: Add python-atpublic.,
guix-commits <=
- 03/46: gnu: Add python-importlib-resources., guix-commits, 2020/07/21
- 06/46: gnu: Add python-brotli., guix-commits, 2020/07/21
- 11/46: gnu: Add python-readme-renderer., guix-commits, 2020/07/21
- 12/46: gnu: Add python-geopy., guix-commits, 2020/07/21
- 02/46: gnu: Add python-authres., guix-commits, 2020/07/21
- 07/46: gnu: Add python-pytest-aiohttp., guix-commits, 2020/07/21
- 18/46: gnu: Add python-lazr-delegates., guix-commits, 2020/07/21
- 25/46: gnu: Add python-rjsmin., guix-commits, 2020/07/21
- 27/46: gnu: Add python-robot-detection., guix-commits, 2020/07/21
- 04/46: gnu: Add python-dkimpy., guix-commits, 2020/07/21