5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
56 lines
1,023 B
Nix
56 lines
1,023 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, astropy
|
|
, pillow
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, pytest-astropy
|
|
, requests
|
|
, requests-mock
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvo";
|
|
version = "1.4";
|
|
|
|
disabled = pythonOlder "3.8"; # according to setup.cfg
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-R2ttLoFd6Ic0KZl49dzN5NtWAqPpXRaeki6X8CRGsCw=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
astropy
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|