From aa8d1bb55ecc2fded97b45618d6f1148262997f0 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 1 Nov 2025 11:14:30 +0100 Subject: gnu: python-pretend: Move to python-build and adapt native-inputs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-pretend): Move from here… * gnu/packages/python-build.scm (python-pretend): …to here. [native-inputs]: Remove python-pytest, and python-setuptools; add python-packaging-bootstrap, python-pytest-bootstrap, and python-setuptools-bootstrap. Related-to: guix/guix#5813 Change-Id: I75a27534d71f456fdb76841f1d3597a81976c7e6 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-build.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python-build.scm') diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index 68977c61da8..261b52a9d75 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -682,6 +682,33 @@ information.") ;; licenses. (license (list license:asl2.0 license:bsd-2)))) +(define-public python-pretend + (package + (name "python-pretend") + (version "1.0.9") + (source + (origin + (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 "156l685r9mg7i4xyrk9ql3sxk088irxlg8x7md5i0d05hdw1z8rs")))) + (build-system pyproject-build-system) + (native-inputs + (list python-packaging-bootstrap + python-pytest-bootstrap + python-setuptools-bootstrap)) + (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.") + (license license:bsd-3))) + ;;; The name 'python-pypa-build' is chosen rather than 'python-build' to avoid ;;; a name clash with python-build from (guix build-system python). (define-public python-pypa-build -- cgit v1.3