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