all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#43072] [PATCH 0/2] gnu: Add python-safety.
@ 2020-08-27 14:39 Tanguy Le Carrour
  2020-08-27 14:41 ` [bug#43072] [PATCH 1/2] gnu: Add python-dparse Tanguy Le Carrour
  2020-08-27 16:28 ` bug#43072: [PATCH 0/2] " Leo Famulari
  0 siblings, 2 replies; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-08-27 14:39 UTC (permalink / raw)
  To: 43072; +Cc: Tanguy Le Carrour

Tanguy Le Carrour (2):
  gnu: Add python-dparse.
  gnu: Add python-safety.

 gnu/packages/python-xyz.scm | 56 +++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

-- 
2.28.0





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

* [bug#43072] [PATCH 1/2] gnu: Add python-dparse.
  2020-08-27 14:39 [bug#43072] [PATCH 0/2] gnu: Add python-safety Tanguy Le Carrour
@ 2020-08-27 14:41 ` Tanguy Le Carrour
  2020-08-27 14:41   ` [bug#43072] [PATCH 2/2] gnu: Add python-safety Tanguy Le Carrour
  2020-08-27 16:28 ` bug#43072: [PATCH 0/2] " Leo Famulari
  1 sibling, 1 reply; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-08-27 14:41 UTC (permalink / raw)
  To: 43072; +Cc: Tanguy Le Carrour

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e32d7771cf..49156ce6ee 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21750,3 +21750,27 @@ It adds a simple and readable way to print stuff during development.")
      "@code{python-dateparser} provides modules to easily parse localized
 dates in almost any string formats commonly found on web pages.")
     (license license:bsd-3)))
+
+(define-public python-dparse
+  (package
+    (name "python-dparse")
+    (version "0.5.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "dparse" version))
+        (sha256
+          (base32
+            "0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
+    (build-system python-build-system)
+    (native-inputs
+      `(("python-pytest" ,python-pytest)))
+    (propagated-inputs
+      `(("python-packaging" ,python-packaging)
+        ("python-pyyaml" ,python-pyyaml)
+        ("python-toml" ,python-toml)))
+    (home-page "https://github.com/pyupio/dparse")
+    (synopsis "Parser for Python dependency files")
+    (description
+      "A parser for Python dependency files.")
+    (license license:expat)))
-- 
2.28.0





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

* [bug#43072] [PATCH 2/2] gnu: Add python-safety.
  2020-08-27 14:41 ` [bug#43072] [PATCH 1/2] gnu: Add python-dparse Tanguy Le Carrour
@ 2020-08-27 14:41   ` Tanguy Le Carrour
  0 siblings, 0 replies; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-08-27 14:41 UTC (permalink / raw)
  To: 43072; +Cc: Tanguy Le Carrour

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 49156ce6ee..088c709983 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21774,3 +21774,35 @@ dates in almost any string formats commonly found on web pages.")
     (description
       "A parser for Python dependency files.")
     (license license:expat)))
+
+(define-public python-safety
+  (package
+    (name "python-safety")
+    (version "1.9.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "safety" version))
+        (sha256
+          (base32
+            "1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'disable-tests
+           (lambda _
+             (substitute* "tests/test_safety.py"
+               ;; requires network
+               (("def test_check_live") "def _test_check_live"))
+             #t)))))
+    (propagated-inputs
+      `(("python-click" ,python-click)
+        ("python-dparse" ,python-dparse)
+        ("python-packaging" ,python-packaging)
+        ("python-requests" ,python-requests)))
+    (home-page "https://github.com/pyupio/safety")
+    (synopsis "Check installed dependencies for known vulnerabilities")
+    (description "Safety checks installed dependencies for known vulnerabilities.
+By default it uses the open Python vulnerability database Safety DB.")
+  (license license:expat)))
-- 
2.28.0





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

* bug#43072: [PATCH 0/2] gnu: Add python-safety.
  2020-08-27 14:39 [bug#43072] [PATCH 0/2] gnu: Add python-safety Tanguy Le Carrour
  2020-08-27 14:41 ` [bug#43072] [PATCH 1/2] gnu: Add python-dparse Tanguy Le Carrour
@ 2020-08-27 16:28 ` Leo Famulari
  2020-08-28  6:32   ` [bug#43072] " Tanguy Le Carrour
  1 sibling, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2020-08-27 16:28 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 43072-done

On Thu, Aug 27, 2020 at 04:39:29PM +0200, Tanguy Le Carrour wrote:
> Tanguy Le Carrour (2):
>   gnu: Add python-dparse.
>   gnu: Add python-safety.

Thanks! I made the description of python-dparse into a complete sentence
and pushed as c849446b82c1c091bd521d8111349867bc45e622




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

* [bug#43072] [PATCH 0/2] gnu: Add python-safety.
  2020-08-27 16:28 ` bug#43072: [PATCH 0/2] " Leo Famulari
@ 2020-08-28  6:32   ` Tanguy Le Carrour
  2020-08-28 16:14     ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-08-28  6:32 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 43072-done

Le 08/27, Leo Famulari a écrit :
> On Thu, Aug 27, 2020 at 04:39:29PM +0200, Tanguy Le Carrour wrote:
> > Tanguy Le Carrour (2):
> >   gnu: Add python-dparse.
> >   gnu: Add python-safety.
> 
> Thanks! I made the description of python-dparse into a complete sentence
> and pushed as c849446b82c1c091bd521d8111349867bc45e622

Sorry! I'm still working on my synopsis/descriptions skills!

Thanks!

-- 
Tanguy




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

* [bug#43072] [PATCH 0/2] gnu: Add python-safety.
  2020-08-28  6:32   ` [bug#43072] " Tanguy Le Carrour
@ 2020-08-28 16:14     ` Leo Famulari
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Famulari @ 2020-08-28 16:14 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 43072-done

On Fri, Aug 28, 2020 at 08:32:33AM +0200, Tanguy Le Carrour wrote:
> Le 08/27, Leo Famulari a écrit :
> > On Thu, Aug 27, 2020 at 04:39:29PM +0200, Tanguy Le Carrour wrote:
> > > Tanguy Le Carrour (2):
> > >   gnu: Add python-dparse.
> > >   gnu: Add python-safety.
> > 
> > Thanks! I made the description of python-dparse into a complete sentence
> > and pushed as c849446b82c1c091bd521d8111349867bc45e622
> 
> Sorry! I'm still working on my synopsis/descriptions skills!

Don't worry about it too much! That's what reviewers are for :)




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

end of thread, other threads:[~2020-08-28 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-27 14:39 [bug#43072] [PATCH 0/2] gnu: Add python-safety Tanguy Le Carrour
2020-08-27 14:41 ` [bug#43072] [PATCH 1/2] gnu: Add python-dparse Tanguy Le Carrour
2020-08-27 14:41   ` [bug#43072] [PATCH 2/2] gnu: Add python-safety Tanguy Le Carrour
2020-08-27 16:28 ` bug#43072: [PATCH 0/2] " Leo Famulari
2020-08-28  6:32   ` [bug#43072] " Tanguy Le Carrour
2020-08-28 16:14     ` Leo Famulari

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.