GNU bug report logs - #43072
[PATCH 0/2] gnu: Add python-safety.

Previous Next

Package: guix-patches;

Reported by: Tanguy Le Carrour <tanguy <at> bioneland.org>

Date: Thu, 27 Aug 2020 14:40:01 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43072 in the body.
You can then email your comments to 43072 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#43072; Package guix-patches. (Thu, 27 Aug 2020 14:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 27 Aug 2020 14:40:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: guix-patches <at> gnu.org
Cc: Tanguy Le Carrour <tanguy <at> bioneland.org>
Subject: [PATCH 0/2] gnu: Add python-safety.
Date: Thu, 27 Aug 2020 16:39:29 +0200
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





Information forwarded to guix-patches <at> gnu.org:
bug#43072; Package guix-patches. (Thu, 27 Aug 2020 14:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 43072 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 43072 <at> debbugs.gnu.org
Cc: Tanguy Le Carrour <tanguy <at> bioneland.org>
Subject: [PATCH 1/2] gnu: Add python-dparse.
Date: Thu, 27 Aug 2020 16:41:14 +0200
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#43072; Package guix-patches. (Thu, 27 Aug 2020 14:42:02 GMT) Full text and rfc822 format available.

Message #11 received at 43072 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 43072 <at> debbugs.gnu.org
Cc: Tanguy Le Carrour <tanguy <at> bioneland.org>
Subject: [PATCH 2/2] gnu: Add python-safety.
Date: Thu, 27 Aug 2020 16:41:15 +0200
* 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





Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Thu, 27 Aug 2020 16:29:02 GMT) Full text and rfc822 format available.

Notification sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
bug acknowledged by developer. (Thu, 27 Aug 2020 16:29:02 GMT) Full text and rfc822 format available.

Message #16 received at 43072-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 43072-done <at> debbugs.gnu.org
Subject: Re: [bug#43072] [PATCH 0/2] gnu: Add python-safety.
Date: Thu, 27 Aug 2020 12:28:09 -0400
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




Information forwarded to guix-patches <at> gnu.org:
bug#43072; Package guix-patches. (Fri, 28 Aug 2020 06:33:02 GMT) Full text and rfc822 format available.

Message #19 received at 43072-done <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: 43072-done <at> debbugs.gnu.org
Subject: Re: [bug#43072] [PATCH 0/2] gnu: Add python-safety.
Date: Fri, 28 Aug 2020 08:32:33 +0200
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




Information forwarded to guix-patches <at> gnu.org:
bug#43072; Package guix-patches. (Fri, 28 Aug 2020 16:15:02 GMT) Full text and rfc822 format available.

Message #22 received at 43072-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 43072-done <at> debbugs.gnu.org
Subject: Re: [bug#43072] [PATCH 0/2] gnu: Add python-safety.
Date: Fri, 28 Aug 2020 12:14:04 -0400
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 :)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Sep 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.