587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
56 lines
1,022 B
Nix
56 lines
1,022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, astropy
|
|
, pillow
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, pytest-astropy
|
|
, requests
|
|
, requests-mock
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvo";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8"; # according to setup.cfg
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ByCBD+e3ZrpT0Q6dnkuyO8lnwVGm85LiKmy/4NRTpjI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|