1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
astropy,
boto3,
requests,
keyring,
beautifulsoup4,
html5lib,
matplotlib,
pillow,
pytest,
pytest-astropy,
pytest-dependency,
pytest-rerunfailures,
pytest-timeout,
pytestCheckHook,
pyvo,
astropy-helpers,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "astroquery";
version = "0.4.11";
pyproject = true;
src = fetchFromGitHub {
owner = "astropy";
repo = "astroquery";
tag = "v${version}";
hash = "sha256-BcdRBPnJfuW17p31xUhjBmP7Lv98CnmOTCO4aU0xpMM=";
};
build-system = [
astropy-helpers
setuptools
];
dependencies = [
astropy
requests
keyring
beautifulsoup4
html5lib
pyvo
];
# Disable automatic update of the astropy-helper module
postPatch = ''
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
'';
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [
boto3
matplotlib
pillow
pytest
pytest-astropy
pytest-dependency
pytest-rerunfailures
pytest-timeout
writableTmpDirAsHomeHook
];
# Tests must be run in the build directory.
preCheck = ''
cd build/lib
'';
pythonImportsCheck = [ "astroquery" ];
meta = {
changelog = "https://github.com/astropy/astroquery/releases/tag/${src.tag}";
description = "Functions and classes to access online data resources";
homepage = "https://astroquery.readthedocs.io/";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.smaret ];
};
}
|