Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 84 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, buildPythonPackage, fetchFromGitHub, astropy, boto3, requests, keyring, beautifulsoup4, html5lib, matplotlib, pillow, pytest, pytest-astropy, pytest-dependency, pytest-rerunfailures, pytest-timeout, pytestCheckHook, pyvo, astropy-helpers, setuptools, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "astroquery"; version = "0.4.11"; pyproject = true;
src = fetchFromGitHub { owner = "astropy"; repo = "astroquery"; tag = "v${version}"; hash = "sha256-BcdRBPnJfuW17p31xUhjBmP7Lv98CnmOTCO4aU0xpMM="; };
build-system = [ astropy-helpers setuptools ];
dependencies = [ astropy requests keyring beautifulsoup4 html5lib pyvo ];
# Disable automatic update of the astropy-helper module postPatch = '' substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" '';
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ boto3 matplotlib pillow pytest pytest-astropy pytest-dependency pytest-rerunfailures pytest-timeout writableTmpDirAsHomeHook ];
# Tests must be run in the build directory. preCheck = '' cd build/lib '';
pythonImportsCheck = [ "astroquery" ];
meta = { changelog = "https://github.com/astropy/astroquery/releases/tag/${src.tag}"; description = "Functions and classes to access online data resources"; homepage = "https://astroquery.readthedocs.io/"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.smaret ]; };}