fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
astropy,
|
|
pillow,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
pytest-astropy,
|
|
requests,
|
|
requests-mock,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvo";
|
|
version = "1.5.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8"; # according to setup.cfg
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-uKJMRNrOXGB7HZOv0CV9FfoQnx6GV3I0fqlJ7qAcj3E=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
astropy
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pillow
|
|
pytestCheckHook
|
|
pytest-astropy
|
|
requests-mock
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# touches network
|
|
"pyvo/dal/tests/test_datalink.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyvo" ];
|
|
|
|
meta = with lib; {
|
|
description = "Astropy affiliated package for accessing Virtual Observatory data and services";
|
|
homepage = "https://github.com/astropy/pyvo";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ smaret ];
|
|
};
|
|
}
|