1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 astropy,
6 pillow,
7 pythonOlder,
8 pytestCheckHook,
9 pytest-astropy,
10 requests,
11 requests-mock,
12 setuptools,
13 setuptools-scm,
14}:
15
16buildPythonPackage rec {
17 pname = "pyvo";
18 version = "1.7";
19 pyproject = true;
20
21 disabled = pythonOlder "3.8"; # according to setup.cfg
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-pvrZ79QQcy0RPlXfQ7AgHJrLLinydTLHG9pW84zmIyA=";
26 };
27
28 build-system = [
29 setuptools
30 setuptools-scm
31 ];
32
33 dependencies = [
34 astropy
35 requests
36 ];
37
38 nativeCheckInputs = [
39 pillow
40 pytestCheckHook
41 pytest-astropy
42 requests-mock
43 ];
44
45 disabledTestPaths = [
46 # touches network
47 "pyvo/dal/tests/test_datalink.py"
48 ];
49
50 pythonImportsCheck = [ "pyvo" ];
51
52 meta = with lib; {
53 description = "Astropy affiliated package for accessing Virtual Observatory data and services";
54 homepage = "https://github.com/astropy/pyvo";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ smaret ];
57 };
58}