diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-03-10 03:16:40 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:35 +0200 |
commit | cdc3d522e5357c114debe55127614a555bf1aab2 (patch) | |
tree | 1201e5302621b4cc1a965d45fad9cc70b821eb3b | |
parent | 5ae21052decf267e85b868d45e377658b84d35f2 (diff) | |
download | guix-cdc3d522e5357c114debe55127614a555bf1aab2.tar.gz guix-cdc3d522e5357c114debe55127614a555bf1aab2.zip |
gnu: Add python-conda-inject.
* gnu/packages/package-management.scm (python-conda-inject): New variable.
Change-Id: Ic4b91e01b68c62fd91a0f6d77e57c6d32c4b5d03
Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r-- | gnu/packages/package-management.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 752e11a341..c81e13560c 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -1123,6 +1123,38 @@ Anaconda Cloud. Anaconda Cloud is useful for sharing packages, notebooks and environments.") (license license:bsd-3))) +(define-public python-conda-inject + (package + (name "python-conda-inject") + (version "1.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/koesterlab/conda-inject") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1aig9l676wc2sjb20y7rdqf0hfcfjhh92yfiy82mf7kfnv7rp3rk")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python3" "tests/tests.py"))))))) + (propagated-inputs (list python-pyyaml)) + (native-inputs (list python-poetry-core python-pytest)) + (home-page "https://github.com/koesterlab/conda-inject") + (synopsis + "Inject a conda environment into the current python environment") + (description + "This package provides helper functions for injecting a conda +environment into the current python environment (by modifying @code{sys.path}, +without actually changing the current python environment).") + (license license:expat))) + (define-public python-conda-package-handling (package (name "python-conda-package-handling") |