aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-08-30 18:26:14 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-08-30 18:29:57 +0200
commitd3364b9c37f0c2ca005e90619ace9b5ed8326cd4 (patch)
treeaf3dae5eab4c48c0927d1379ce9aabb543e88269 /gnu/packages
parentb105655670636789524a375729010035972f5330 (diff)
downloadguix-d3364b9c37f0c2ca005e90619ace9b5ed8326cd4.tar.gz
guix-d3364b9c37f0c2ca005e90619ace9b5ed8326cd4.zip
gnu: python-anndata: Fetch sources from git.
* gnu/packages/python-xyz.scm (python-anndata)[source]: Fetch from git to include test data. [arguments]: Enable tests. Do not let setuptools_scm guess the version.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm14
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5acd237ac2..577353e65d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21386,15 +21386,18 @@ N-dimensional arrays for Python.")
(version "0.7.6")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "anndata" version))
+ ;; The tarball from PyPi doesn't include tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/theislab/anndata")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
(base32
- "1ch8yp0xmag6z0kl01pljm35lbbwax7lrimfhiclpkd4m6xngk53"))))
+ "1q30bsfsq9xfqm8nmabg3bjh9gix3yng0170xiiyw1lin4xncf0q"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f ; The tarball from PyPi doesn't include tests.
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-before 'build 'relax-dependency-requirements
@@ -21405,6 +21408,7 @@ N-dimensional arrays for Python.")
(("pandas>=1.1.1") "pandas>=1.0.5"))))
(replace 'build
(lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "flit" "build")))