tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.astropy-healpix: unbreak
Robert T. McGibbon
4 years ago
8fa0db7b
928d3fc2
+25
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
astropy-healpix
default.nix
+25
-8
pkgs/development/python-modules/astropy-healpix/default.nix
···
3
, fetchPypi
4
, numpy
5
, astropy
6
-
, astropy-helpers
0
0
0
0
7
}:
8
9
buildPythonPackage rec {
10
pname = "astropy-healpix";
11
version = "0.6";
12
13
-
doCheck = false; # tests require pytest-astropy
14
-
15
src = fetchPypi {
16
-
inherit pname version;
0
17
sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690";
18
};
19
20
-
propagatedBuildInputs = [ numpy astropy astropy-helpers ];
0
0
0
0
0
0
0
0
21
22
-
# Disable automatic update of the astropy-helper module
23
-
postPatch = ''
24
-
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
0
0
0
0
0
0
25
'';
26
27
meta = with lib; {
···
3
, fetchPypi
4
, numpy
5
, astropy
6
+
, astropy-extension-helpers
7
+
, setuptools-scm
8
+
, pytestCheckHook
9
+
, pytest-doctestplus
10
+
, hypothesis
11
}:
12
13
buildPythonPackage rec {
14
pname = "astropy-healpix";
15
version = "0.6";
16
0
0
17
src = fetchPypi {
18
+
inherit version;
19
+
pname = lib.replaceStrings ["-"] ["_"] pname;
20
sha256 = "409a6621c383641456c074f0f0350a24a4a58e910eaeef14e9bbce3e00ad6690";
21
};
22
23
+
nativeBuildInputs = [
24
+
astropy-extension-helpers
25
+
setuptools-scm
26
+
];
27
+
28
+
propagatedBuildInputs = [
29
+
numpy
30
+
astropy
31
+
];
32
33
+
checkInputs = [
34
+
pytestCheckHook
35
+
pytest-doctestplus
36
+
hypothesis
37
+
];
38
+
39
+
# tests must be run in the build directory
40
+
preCheck = ''
41
+
cd build/lib*
42
'';
43
44
meta = with lib; {