all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
@ 2020-01-13  9:26 Lars-Dominik Braun
  2020-01-13  9:27 ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13  9:26 UTC (permalink / raw)
  To: 39110; +Cc: Lars-Dominik Braun

* gnu/packages/python-xyz.scm (python-asynctest): New variable
---
 gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9736bfa3fa..21d7b21132 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17280,3 +17280,36 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
 framework")
     (license license:epl2.0)))
 
+(define-public python-asynctest
+  (package
+    (name "python-asynctest")
+    (version "0.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "asynctest" version))
+        (sha256
+          (base32
+            "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "-X" "dev" "-m" "unittest" "test")))
+         (add-after 'unpack 'disable-tests
+           (lambda* _
+            (substitute* "test/test_selector.py"
+              ;; Test fails for unknown reason
+              (("def test_events_watched_outside_test_are_ignored")
+                "@unittest.skip('disabled by guix')\n    def test_events_watched_outside_test_are_ignored")))))))
+    (home-page
+      "https://github.com/Martiusweb/asynctest")
+    (synopsis
+      "Enhance the standard unittest package with features for testing asyncio
+libraries")
+    (description
+      "The package asynctest is built on top of the standard unittest module
+and cuts down boilerplate code when testing libraries for asyncio")
+    (license license:asl2.0)))
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#39110] [PATCH 2/2] gnu: Add python-aionotify
  2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
@ 2020-01-13  9:27 ` Lars-Dominik Braun
  2020-01-13 11:08 ` [bug#39110] [PATCH 1/2] gnu: Add python-asynctest 宋文武
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13  9:27 UTC (permalink / raw)
  To: 39110; +Cc: Lars-Dominik Braun

* gnu/packages/python-xyz.scm (python-aionotify): New variable
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 21d7b21132..890bec328f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17313,3 +17313,26 @@ libraries")
       "The package asynctest is built on top of the standard unittest module
 and cuts down boilerplate code when testing libraries for asyncio")
     (license license:asl2.0)))
+
+(define-public python-aionotify
+  (package
+    (name "python-aionotify")
+    (version "0.2.0")
+    (source
+     (origin
+       ;; Source tarball on PyPi lacks tests
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rbarrois/aionotify")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))))
+    (build-system python-build-system)
+    (native-inputs `(("python-asynctest" ,python-asynctest)))
+    (home-page
+      "https://github.com/rbarrois/aionotify")
+    (synopsis "Asyncio-powered inotify library")
+    (description "aionotify is a simple, asyncio-based inotify library")
+    (license license:bsd-3)))
+
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
  2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
  2020-01-13  9:27 ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
@ 2020-01-13 11:08 ` 宋文武
  2020-01-14 10:59 ` Lars-Dominik Braun
  2020-01-14 11:41 ` [bug#39110] " Lars-Dominik Braun
  3 siblings, 0 replies; 7+ messages in thread
From: 宋文武 @ 2020-01-13 11:08 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 39110

Lars-Dominik Braun <ldb@leibniz-psychology.org> writes:

> * gnu/packages/python-xyz.scm (python-asynctest): New variable
> ---
>  gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 9736bfa3fa..21d7b21132 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -17280,3 +17280,36 @@ server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
>  framework")
>      (license license:epl2.0)))
>  
> +(define-public python-asynctest
> +  (package
> +    (name "python-asynctest")
> ...

Hello, this patch doesn't apply by "git am" for master, is the previous
package asyncssh?  Then you should send it first, thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
  2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
  2020-01-13  9:27 ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
  2020-01-13 11:08 ` [bug#39110] [PATCH 1/2] gnu: Add python-asynctest 宋文武
@ 2020-01-14 10:59 ` Lars-Dominik Braun
  2020-01-18  9:45   ` bug#39110: " 宋文武
  2020-01-14 11:41 ` [bug#39110] " Lars-Dominik Braun
  3 siblings, 1 reply; 7+ messages in thread
From: Lars-Dominik Braun @ 2020-01-14 10:59 UTC (permalink / raw)
  To: 39110

Hi,

sorry, this was unintentional. python-asyncssh is added in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39028, but this one should be
independent. I’ll rebase on top of master and resend the patch series.

Lars

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#39110] [PATCH 1/2] gnu: Add python-asynctest
  2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
                   ` (2 preceding siblings ...)
  2020-01-14 10:59 ` Lars-Dominik Braun
@ 2020-01-14 11:41 ` Lars-Dominik Braun
  2020-01-14 11:41   ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
  3 siblings, 1 reply; 7+ messages in thread
From: Lars-Dominik Braun @ 2020-01-14 11:41 UTC (permalink / raw)
  To: 39110; +Cc: iyzsong, Lars-Dominik Braun

* gnu/packages/python-xyz.scm (python-asynctest): New variable
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2c308796e7..eb74f1e91b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17098,3 +17098,37 @@ scripts to load entry points more quickly.")
 functional combinators.  Parser combinators are just higher-order functions
 that take parsers as their arguments and return them as result values.")
     (license license:expat)))
+
+(define-public python-asynctest
+  (package
+    (name "python-asynctest")
+    (version "0.13.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "asynctest" version))
+        (sha256
+          (base32
+            "1b3zsy7p84gag6q8ai2ylyrhx213qdk2h2zb6im3xn0m5n264y62"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "python" "-X" "dev" "-m" "unittest" "test")))
+         (add-after 'unpack 'disable-tests
+           (lambda* _
+            (substitute* "test/test_selector.py"
+              ;; Test fails for unknown reason
+              (("def test_events_watched_outside_test_are_ignored")
+                "@unittest.skip('disabled by guix')\n    def test_events_watched_outside_test_are_ignored")))))))
+    (home-page
+      "https://github.com/Martiusweb/asynctest")
+    (synopsis
+      "Enhance the standard unittest package with features for testing asyncio
+libraries")
+    (description
+      "The package asynctest is built on top of the standard unittest module
+and cuts down boilerplate code when testing libraries for asyncio")
+    (license license:asl2.0)))
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#39110] [PATCH 2/2] gnu: Add python-aionotify
  2020-01-14 11:41 ` [bug#39110] " Lars-Dominik Braun
@ 2020-01-14 11:41   ` Lars-Dominik Braun
  0 siblings, 0 replies; 7+ messages in thread
From: Lars-Dominik Braun @ 2020-01-14 11:41 UTC (permalink / raw)
  To: 39110; +Cc: iyzsong, Lars-Dominik Braun

* gnu/packages/python-xyz.scm (python-aionotify): New variable
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eb74f1e91b..b2b6d1d807 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17132,3 +17132,26 @@ libraries")
       "The package asynctest is built on top of the standard unittest module
 and cuts down boilerplate code when testing libraries for asyncio")
     (license license:asl2.0)))
+
+(define-public python-aionotify
+  (package
+    (name "python-aionotify")
+    (version "0.2.0")
+    (source
+     (origin
+       ;; Source tarball on PyPi lacks tests
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/rbarrois/aionotify")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))))
+    (build-system python-build-system)
+    (native-inputs `(("python-asynctest" ,python-asynctest)))
+    (home-page
+      "https://github.com/rbarrois/aionotify")
+    (synopsis "Asyncio-powered inotify library")
+    (description "aionotify is a simple, asyncio-based inotify library")
+    (license license:bsd-3)))
+
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#39110: [PATCH 1/2] gnu: Add python-asynctest
  2020-01-14 10:59 ` Lars-Dominik Braun
@ 2020-01-18  9:45   ` 宋文武
  0 siblings, 0 replies; 7+ messages in thread
From: 宋文武 @ 2020-01-18  9:45 UTC (permalink / raw)
  To: Lars-Dominik Braun; +Cc: 39110-done

Lars-Dominik Braun <ldb@leibniz-psychology.org> writes:

> Hi,
>
> sorry, this was unintentional. python-asyncssh is added in
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39028, but this one should be
> independent. I’ll rebase on top of master and resend the patch series.

Pushed to master now, thank you!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-18  9:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13  9:26 [bug#39110] [PATCH 1/2] gnu: Add python-asynctest Lars-Dominik Braun
2020-01-13  9:27 ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun
2020-01-13 11:08 ` [bug#39110] [PATCH 1/2] gnu: Add python-asynctest 宋文武
2020-01-14 10:59 ` Lars-Dominik Braun
2020-01-18  9:45   ` bug#39110: " 宋文武
2020-01-14 11:41 ` [bug#39110] " Lars-Dominik Braun
2020-01-14 11:41   ` [bug#39110] [PATCH 2/2] gnu: Add python-aionotify Lars-Dominik Braun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.