summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-13 20:28:24 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-08-14 13:15:27 +0100
commitec1bade27d7f5199d4b6f2ced32c3c8e02fc56b6 (patch)
tree480a5b44f55dddd079146a390706f961a4ad180c
parenta049790ba19c3fca19f4b100afb300ab83b800b8 (diff)
gnu: python-aspectlib: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-aspectlib): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Disable problematic tests. [native-inputs]: Add python-setuptools, python-wheel. [synopsis, description]: Improve style. Change-Id: I3303d1b0d3ff7c73d6511aeb3ee03c21e85698bf Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm30
1 files changed, 21 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d71d26b15f..38a5e368fc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -37335,18 +37335,30 @@ It implements advanced Python dictionaries with dot notation access.")
(name "python-aspectlib")
(version "1.5.2")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "aspectlib" version))
- (sha256
- (base32 "1am4ycf292zbmgz791z393v63w7qrynf8q5p9db2wwf2qj1fqxfj"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ionelmc/python-aspectlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1mfhflg33684gkp6ckkywshn4xa3vqaia521kcagaxgr3xm6c9pv"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list ;; XXX: Require more dependencies.
+ "--ignore=tests/test_integrations.py"
+ "--ignore=tests/test_integrations_py3.py"
+ ;; XXX: Unimportant warning errors.
+ "-k" (string-append "not test_story_empty_play_proxy_class"
+ " and not test_story_half_play_proxy_class"))))
+ (native-inputs (list python-pytest python-setuptools python-tornado python-wheel))
(propagated-inputs (list python-fields))
(home-page "https://github.com/ionelmc/python-aspectlib")
- (synopsis
- "Python monkey-patching and decorators")
+ (synopsis "Python monkey-patching and decorators")
(description
- "This package provides an aspect-oriented programming, monkey-patch
+ "This package provides an aspect-oriented programming, monkey-patch
and decorators library. It is useful when changing behavior in existing
code is desired. It includes tools for debugging and testing:
simple mock/record and a complete capture/replay framework.")