diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-04-06 00:42:34 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-05-12 12:45:32 -0400 |
commit | 831bf98f6ceed5b1ac400c90f74c3a49587d7d0b (patch) | |
tree | f1ccfa09423129f23d518383871d707657c55c9d | |
parent | 9010b1adfd0c876e9a5971a373ae620378aca686 (diff) | |
download | guix-831bf98f6ceed5b1ac400c90f74c3a49587d7d0b.tar.gz |
gnu: Add python-path.
* gnu/packages/python-xyz.scm (python-path): New variable.
-rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 458d0d58af..88435942ce 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12739,6 +12739,42 @@ objects as first-class entities, allowing common operations on files to be invoked on those path objects directly.") (license license:expat)))) +(define-public python-path + (package/inherit python-path-bootstrap + (name "python-path") + (arguments + (substitute-keyword-arguments + (package-arguments python-path-bootstrap) + ((#:tests? _ #f) + #t) + ((#:phases phases #~%standard-phases) + #~(modify-phases #$phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Do not test the myproject.toml build as it tries to pull + ;; dependencies from the Internet. + (invoke "pytest" "-vv" "-k" + (string-append + "not project " + ;; This tests assumes a root user exists. + "and not test_get_owner"))))))))) + (native-inputs + (modify-inputs (package-native-inputs python-path-bootstrap) + (append python-appdirs + python-packaging + python-pygments + python-pytest + python-pytest-black + python-pytest-checkdocs + python-pytest-cov + python-pytest-enabler + python-pytest-flake8 + python-pytest-mypy))) + (properties (alist-delete 'hidden? + (package-properties + python-path-bootstrap))))) + (define-public python-pretend (package (name "python-pretend") |