nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 84 lines 1.6 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 astropy, 6 boto3, 7 requests, 8 keyring, 9 beautifulsoup4, 10 html5lib, 11 matplotlib, 12 pillow, 13 pytest, 14 pytest-astropy, 15 pytest-dependency, 16 pytest-rerunfailures, 17 pytest-timeout, 18 pytestCheckHook, 19 pyvo, 20 astropy-helpers, 21 setuptools, 22 writableTmpDirAsHomeHook, 23}: 24 25buildPythonPackage rec { 26 pname = "astroquery"; 27 version = "0.4.11"; 28 pyproject = true; 29 30 src = fetchFromGitHub { 31 owner = "astropy"; 32 repo = "astroquery"; 33 tag = "v${version}"; 34 hash = "sha256-BcdRBPnJfuW17p31xUhjBmP7Lv98CnmOTCO4aU0xpMM="; 35 }; 36 37 build-system = [ 38 astropy-helpers 39 setuptools 40 ]; 41 42 dependencies = [ 43 astropy 44 requests 45 keyring 46 beautifulsoup4 47 html5lib 48 pyvo 49 ]; 50 51 # Disable automatic update of the astropy-helper module 52 postPatch = '' 53 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" 54 ''; 55 56 nativeCheckInputs = [ pytestCheckHook ]; 57 58 checkInputs = [ 59 boto3 60 matplotlib 61 pillow 62 pytest 63 pytest-astropy 64 pytest-dependency 65 pytest-rerunfailures 66 pytest-timeout 67 writableTmpDirAsHomeHook 68 ]; 69 70 # Tests must be run in the build directory. 71 preCheck = '' 72 cd build/lib 73 ''; 74 75 pythonImportsCheck = [ "astroquery" ]; 76 77 meta = { 78 changelog = "https://github.com/astropy/astroquery/releases/tag/${src.tag}"; 79 description = "Functions and classes to access online data resources"; 80 homepage = "https://astroquery.readthedocs.io/"; 81 license = lib.licenses.bsd3; 82 maintainers = [ lib.maintainers.smaret ]; 83 }; 84}