tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.astropy: unbreak
Robert T. McGibbon
5 years ago
8df2e769
7ef5a93f
+13
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
astropy
default.nix
+13
-13
pkgs/development/python-modules/astropy/default.nix
···
1
1
{ lib
2
2
, fetchPypi
3
3
+
, setuptools_scm
3
4
, buildPythonPackage
4
5
, isPy3k
5
6
, cython
···
8
9
, pytest
9
10
, pytest-astropy
10
11
, astropy-helpers
12
12
+
, astropy-extension-helpers
13
13
+
, pyerfa
11
14
}:
12
15
13
16
buildPythonPackage rec {
14
17
pname = "astropy";
15
18
version = "4.2";
19
19
+
format = "pyproject";
16
20
17
21
disabled = !isPy3k; # according to setup.py
18
22
···
21
25
sha256 = "2c194f8a429b8399de64a413a06881ea49f0525cabaa2d78fc132b9e970adc6a";
22
26
};
23
27
24
24
-
nativeBuildInputs = [ astropy-helpers cython jinja2 ];
25
25
-
26
26
-
propagatedBuildInputs = [ numpy pytest ]; # yes it really has pytest in install_requires
27
27
-
28
28
+
nativeBuildInputs = [ setuptools_scm astropy-helpers astropy-extension-helpers cython jinja2 ];
29
29
+
propagatedBuildInputs = [ numpy pyerfa ];
28
30
checkInputs = [ pytest pytest-astropy ];
29
31
30
30
-
# Disable automatic update of the astropy-helper module
31
31
-
postPatch = ''
32
32
-
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
32
32
+
preBuild = ''
33
33
+
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
33
34
'';
34
35
35
36
# Tests must be run from the build directory. astropy/samp tests
···
42
43
'';
43
44
44
45
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s
46
46
+
# doCheck = false;
45
47
doCheck = false;
46
48
47
47
-
meta = {
49
49
+
meta = with lib; {
48
50
description = "Astronomy/Astrophysics library for Python";
49
51
homepage = "https://www.astropy.org";
50
50
-
license = lib.licenses.bsd3;
51
51
-
platforms = lib.platforms.all;
52
52
-
maintainers = with lib.maintainers; [ kentjames ];
52
52
+
license = licenses.bsd3;
53
53
+
platforms = platforms.all;
54
54
+
maintainers = [ maintainers.kentjames ];
53
55
};
54
56
}
55
55
-
56
56
-