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
{ lib
2
, fetchPypi
0
3
, buildPythonPackage
4
, isPy3k
5
, cython
···
8
, pytest
9
, pytest-astropy
10
, astropy-helpers
0
0
11
}:
12
13
buildPythonPackage rec {
14
pname = "astropy";
15
version = "4.2";
0
16
17
disabled = !isPy3k; # according to setup.py
18
···
21
sha256 = "2c194f8a429b8399de64a413a06881ea49f0525cabaa2d78fc132b9e970adc6a";
22
};
23
24
-
nativeBuildInputs = [ astropy-helpers cython jinja2 ];
25
-
26
-
propagatedBuildInputs = [ numpy pytest ]; # yes it really has pytest in install_requires
27
-
28
checkInputs = [ pytest pytest-astropy ];
29
30
-
# Disable automatic update of the astropy-helper module
31
-
postPatch = ''
32
-
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
33
'';
34
35
# Tests must be run from the build directory. astropy/samp tests
···
42
'';
43
44
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s
0
45
doCheck = false;
46
47
-
meta = {
48
description = "Astronomy/Astrophysics library for Python";
49
homepage = "https://www.astropy.org";
50
-
license = lib.licenses.bsd3;
51
-
platforms = lib.platforms.all;
52
-
maintainers = with lib.maintainers; [ kentjames ];
53
};
54
}
55
-
56
-
···
1
{ lib
2
, fetchPypi
3
+
, setuptools_scm
4
, buildPythonPackage
5
, isPy3k
6
, cython
···
9
, pytest
10
, pytest-astropy
11
, astropy-helpers
12
+
, astropy-extension-helpers
13
+
, pyerfa
14
}:
15
16
buildPythonPackage rec {
17
pname = "astropy";
18
version = "4.2";
19
+
format = "pyproject";
20
21
disabled = !isPy3k; # according to setup.py
22
···
25
sha256 = "2c194f8a429b8399de64a413a06881ea49f0525cabaa2d78fc132b9e970adc6a";
26
};
27
28
+
nativeBuildInputs = [ setuptools_scm astropy-helpers astropy-extension-helpers cython jinja2 ];
29
+
propagatedBuildInputs = [ numpy pyerfa ];
0
0
30
checkInputs = [ pytest pytest-astropy ];
31
32
+
preBuild = ''
33
+
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
0
34
'';
35
36
# Tests must be run from the build directory. astropy/samp tests
···
43
'';
44
45
# 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s
46
+
# doCheck = false;
47
doCheck = false;
48
49
+
meta = with lib; {
50
description = "Astronomy/Astrophysics library for Python";
51
homepage = "https://www.astropy.org";
52
+
license = licenses.bsd3;
53
+
platforms = platforms.all;
54
+
maintainers = [ maintainers.kentjames ];
55
};
56
}
0
0