diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-12 21:42:46 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:35:39 +0100 |
| commit | 0383b3a31564452d0dc3d4286db2254a1f783efa (patch) | |
| tree | eab403def26cb26280abca1d1987b3f87741f665 /gnu/packages/python-xyz.scm | |
| parent | fc33f438a7ff7a7b5f5a1c6496c5e16a385e469f (diff) | |
gnu: python-pretend: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-pretend):
[source]: Switch to git-fetch containing tests.
[build-system]: Use pyproject.
[native-inputs]: Add python-pytest and python-setuptools.
Change-Id: I339b7c2463c41e5f1017c9d71857c593f6211d5b
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 27ef320e04..fb2e8fdfce 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18466,19 +18466,24 @@ invoked on those path objects directly.") (version "1.0.9") (source (origin - (method url-fetch) - (uri (pypi-uri "pretend" version)) + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/alex/pretend") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9")))) - (build-system python-build-system) + (base32 "156l685r9mg7i4xyrk9ql3sxk088irxlg8x7md5i0d05hdw1z8rs")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest + python-setuptools)) (home-page "https://github.com/alex/pretend") (synopsis "Library for stubbing in Python") (description "Pretend is a library to make stubbing with Python easier. Stubbing is a -technique for writing tests. You may hear the term mixed up with mocks, -fakes, or doubles. Basically, a stub is an object that returns pre-canned -responses, rather than doing any computation.") +technique for writing tests. You may hear the term mixed up with mocks,fakes, +or doubles. Basically, a stub is an object that returns pre-canned responses, +rather than doing any computation.") (license license:bsd-3))) ;;; Variant used to break a dependency cycle with |
