emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#29915: closed ([PATCH] gnu: Add python-pyhamcrest.


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29915: closed ([PATCH] gnu: Add python-pyhamcrest.)
Date: Mon, 08 Jan 2018 03:08:01 +0000

Your message dated Sun, 07 Jan 2018 22:07:12 -0500
with message-id <address@hidden>
and subject line Re: [bug#29915] [PATCH] gnu: Add python-pyhamcrest.
has caused the debbugs.gnu.org bug report #29915,
regarding [PATCH] gnu: Add python-pyhamcrest.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
29915: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29915
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-pyhamcrest. Date: Sun, 31 Dec 2017 17:35:41 +0000
* gnu/packages/check.scm (python-pyhamcrest): New variable.
---
 gnu/packages/check.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 05ed3eea3..a7ddc01ce 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1766,3 +1766,37 @@ retried.")

 (define-public python2-flaky
   (package-with-python2 python-flaky))
+
+(define-public python-pyhamcrest
+  (package
+    (name "python-pyhamcrest")
+    (version "1.9.0")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append
+                "https://github.com/hamcrest/PyHamcrest/archive/V";
+                version
+                ".tar.gz"))
+              (file-name
+               (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1lqjajhwf7x7igvvnj5p1cm31y9njy07qby94w18kl6zwbdjqrwy"))))
+    (native-inputs                      ; All native inputs are for tests
+     `(("python-pytest-cov" ,python-pytest-cov)
+       ("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest-3.0)
+       ("python-hypothesis" ,python-hypothesis)))
+    (inputs
+     `(("python-six" ,python-six)))
+    (build-system python-build-system)
+    (home-page "http://hamcrest.org/";)
+    (synopsis "Hamcrest matchers for Python")
+    (description
+     "PyHamcrest is a framework for writing matcher objects,
+ allowing you to declaratively define \"match\" rules.")
+    (license license:bsd-3)))
+
+(define-public python2-pyhamcrest
+  (package-with-python2 python-pyhamcrest))
-- 
2.13.6


--- End Message ---
--- Begin Message --- Subject: Re: [bug#29915] [PATCH] gnu: Add python-pyhamcrest. Date: Sun, 07 Jan 2018 22:07:12 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
Kei Kebreau <address@hidden> writes:

> Hi Fis,
>
>> * gnu/packages/check.scm (python-pyhamcrest): New variable.
>> ---
>>  gnu/packages/check.scm | 34 ++++++++++++++++++++++++++++++++++
>>  1 file changed, 34 insertions(+)
>>
>> diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
>> index 05ed3eea3..a7ddc01ce 100644
>> --- a/gnu/packages/check.scm
>> +++ b/gnu/packages/check.scm
>> @@ -1766,3 +1766,37 @@ retried.")
>>
>>  (define-public python2-flaky
>>    (package-with-python2 python-flaky))
>> +
>> +(define-public python-pyhamcrest
>> +  (package
>> +    (name "python-pyhamcrest")
>> +    (version "1.9.0")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri
>> +               (string-append
>> +                "https://github.com/hamcrest/PyHamcrest/archive/V";
>> +                version
>> +                ".tar.gz"))
>
> ".tar.gz" can share the line with the version number here.
>
>> +              (file-name
>> +               (string-append name "-" version ".tar.gz"))
>> +              (sha256
>> +               (base32
>> +                "1lqjajhwf7x7igvvnj5p1cm31y9njy07qby94w18kl6zwbdjqrwy"))))
>> +    (native-inputs                      ; All native inputs are for tests
>> +     `(("python-pytest-cov" ,python-pytest-cov)
>> +       ("python-mock" ,python-mock)
>> +       ("python-pytest" ,python-pytest-3.0)
>> +       ("python-hypothesis" ,python-hypothesis)))
>> +    (inputs
>> +     `(("python-six" ,python-six)))
>
> Six would be a propagated input here, seeing that it is in the
> install_requires list in Hamcrest's setup.py file. For more details and
> future reference, this type of thing is in the "Python Modules" section
> of Guix's manual.
>
>> +    (build-system python-build-system)
>> +    (home-page "http://hamcrest.org/";)
>> +    (synopsis "Hamcrest matchers for Python")
>> +    (description
>> +     "PyHamcrest is a framework for writing matcher objects,
>> + allowing you to declaratively define \"match\" rules.")
>> +    (license license:bsd-3)))
>> +
>> +(define-public python2-pyhamcrest
>> +  (package-with-python2 python-pyhamcrest))
>
> I've also added python2-hamcrest to the list of new variables in your
> commit message. I've made changed the bits I mentioned above and pushed
> your changes. Thanks for contributing!

Also, if a copyright attribution is not already present, don't forget to
add a copyright line at the top of the file for yourself when making
copyrightable contributions like this one!

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]