[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/55: gnu: Add python-dirty-equals.
From: |
guix-commits |
Subject: |
02/55: gnu: Add python-dirty-equals. |
Date: |
Thu, 21 Sep 2023 13:31:33 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 146cf4c306ac2d534a0b35af03112c883f160390
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Sep 9 15:31:50 2023 +0800
gnu: Add python-dirty-equals.
* gnu/packages/python-xyz.scm (python-dirty-equals): New variable.
---
gnu/packages/python-xyz.scm | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e90333cadf..2c8a4c3019 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
-;;; Copyright © 2016-2022 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2016-2023 Marius Bakke <marius@gnu.org>
;;; Copyright © 2016, 2017, 2021, 2022 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016, 2017, 2019 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2016–2018, 2021–2023 Arun Isaac <arunisaac@systemreboot.net>
@@ -8513,6 +8513,38 @@ by pycodestyle.")
(license (license:non-copyleft
"https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
+(define-public python-dirty-equals
+ (package
+ (name "python-dirty-equals")
+ (version "0.7.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/samuelcolvin/dirty-equals")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1hw044d6q0ij8hrrbp6wbdb49xbyjd22viansy817hpmd0yf85ja"))))
+ (build-system pyproject-build-system)
+ (arguments
+ ;; This test requires pytest-examples, which in turn requires
+ ;; python-ruff, which is difficult to package because it is
+ ;; written in Rust (TODO: Enable when Ruff is in Guix!).
+ (list #:test-flags #~'("--ignore" "tests/test_docs.py")))
+ (native-inputs
+ (list python-hatchling
+ python-pydantic
+ python-pytest))
+ (propagated-inputs (list python-pytz))
+ (home-page "https://dirty-equals.helpmanual.io/")
+ (synopsis "Do dirty (but useful) things with equals")
+ (description
+ "@code{dirty-equals} is a Python library that (mis)uses the
+@code{__eq__} method to make code (generally unit tests) more declarative
+and therefore easier to read and write.")
+ (license license:expat)))
+
(define-public python-distlib
(package
(name "python-distlib")
- 40/55: gnu: python-distlib: Don't reference the implicit bash input., (continued)
- 40/55: gnu: python-distlib: Don't reference the implicit bash input., guix-commits, 2023/09/21
- 52/55: gnu: python-libnacl: Update to 2.1.0., guix-commits, 2023/09/21
- 44/55: gnu: python-uvicorn: Update to 0.23.2., guix-commits, 2023/09/21
- 49/55: gnu: python-incremental: Update to 22.10.0., guix-commits, 2023/09/21
- 46/55: gnu: python-psycopg: Update to 3.1.10., guix-commits, 2023/09/21
- 48/55: gnu: python-txaio: Update to 23.1.1., guix-commits, 2023/09/21
- 11/55: gnu: Add python-sphinx-basic-ng., guix-commits, 2023/09/21
- 16/55: services: nftables: Add 'configuration' action., guix-commits, 2023/09/21
- 22/55: gnu: Add python-django-ninja., guix-commits, 2023/09/21
- 55/55: gnu: python-bwapy: Fix typo., guix-commits, 2023/09/21
- 02/55: gnu: Add python-dirty-equals.,
guix-commits <=
- 07/55: gnu: Add python-html5tagger., guix-commits, 2023/09/21
- 09/55: gnu: Add python-pyproject-hooks., guix-commits, 2023/09/21
- 10/55: gnu: Add python-slotscheck., guix-commits, 2023/09/21
- 12/55: gnu: Add python-towncrier., guix-commits, 2023/09/21
- 13/55: gnu: Add python-pylsqpack., guix-commits, 2023/09/21
- 14/55: gnu: Add python-aioquic., guix-commits, 2023/09/21
- 19/55: gnu: Add python-dj-search-url., guix-commits, 2023/09/21
- 20/55: gnu: Add python-django-cache-url., guix-commits, 2023/09/21
- 24/55: gnu: websockify: Update to 0.11.0., guix-commits, 2023/09/21
- 26/55: gnu: python-httpx: Update to 0.24.1., guix-commits, 2023/09/21