2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchpatch
|
2022-04-15 01:41:22 +00:00
|
|
|
, astropy
|
|
|
|
, pillow
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-astropy
|
|
|
|
, requests
|
|
|
|
, requests-mock
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvo";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.4";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8"; # according to setup.cfg
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-R2ttLoFd6Ic0KZl49dzN5NtWAqPpXRaeki6X8CRGsCw=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
patches = [
|
|
|
|
# Backport Python 3.11 support.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/astropy/pyvo/pull/385.patch";
|
|
|
|
sha256 = "IHf3W9fIT8XFvyM41PUiJkt1j+B3RkX3TS4FOnRUMDk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
astropy
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/astropy/pyvo";
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ smaret ];
|
|
|
|
};
|
|
|
|
}
|