mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-14 19:05:10 -05:00
gnu: Add python-proto-matcher.
* gnu/packages/python-xyz.scm (python-proto-matcher): New variable.
This commit is contained in:
parent
5f3a32199a
commit
6126062fb1
1 changed files with 38 additions and 0 deletions
|
@ -180,6 +180,7 @@ (define-module (gnu packages python-xyz)
|
|||
#:use-module (gnu packages perl)
|
||||
#:use-module (gnu packages photo)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages protobuf)
|
||||
#:use-module (gnu packages python)
|
||||
#:use-module (gnu packages python-build)
|
||||
#:use-module (gnu packages python-check)
|
||||
|
@ -5895,6 +5896,43 @@ (define-public python-colorspacious
|
|||
(define-public python2-colorspacious
|
||||
(package-with-python2 python-colorspacious))
|
||||
|
||||
(define-public python-proto-matcher
|
||||
(package
|
||||
(name "python-proto-matcher")
|
||||
(version "0.0.3")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "proto_matcher" version))
|
||||
(sha256
|
||||
(base32 "1644x0hrl398ji3281n44ymfgc3cspzfagjckhqjn4nja5nlikxg"))))
|
||||
(build-system python-build-system)
|
||||
(propagated-inputs
|
||||
`(("python-protobuf" ,python-protobuf)
|
||||
("python-pyhamcrest" ,python-pyhamcrest)))
|
||||
(home-page "https://github.com/dayfine/proto-matcher")
|
||||
(synopsis "PyHamcrest test matchers for protocol buffers")
|
||||
(description "This package provides the following PyHamcrest test
|
||||
matchers, that enable matching a protocol buffer message:
|
||||
@table @code
|
||||
@item equals_proto
|
||||
Test the argument equals the given protobuf message.
|
||||
@item approximately
|
||||
Test the argument equals the given protobuf message, while comparing any float
|
||||
field using approximation.
|
||||
@item ignoring_field_paths
|
||||
Test the argument equals the given protobuf message, while ignoring those
|
||||
fields specified in the field paths.
|
||||
@item ignoring_repeated_field_ordering
|
||||
Test the argument equals the given protobuf message, ignoring the ordering of
|
||||
any repeated field.
|
||||
@item partially
|
||||
Test the argument partially equals the given protobuf message, i.e. if a field
|
||||
is in the argument but not in the expected message, it's ignored in the
|
||||
comparison.
|
||||
@end table")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public python-matplotlib
|
||||
(package
|
||||
(name "python-matplotlib")
|
||||
|
|
Loading…
Reference in a new issue