Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, astropy 6, pillow 7, pythonOlder 8, pytestCheckHook 9, pytest-astropy 10, requests 11, requests-mock 12, setuptools-scm 13}: 14 15buildPythonPackage rec { 16 pname = "pyvo"; 17 version = "1.4"; 18 19 disabled = pythonOlder "3.8"; # according to setup.cfg 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-R2ttLoFd6Ic0KZl49dzN5NtWAqPpXRaeki6X8CRGsCw="; 24 }; 25 26 patches = [ 27 # Backport Python 3.11 support. 28 (fetchpatch { 29 url = "https://patch-diff.githubusercontent.com/raw/astropy/pyvo/pull/385.patch"; 30 sha256 = "IHf3W9fIT8XFvyM41PUiJkt1j+B3RkX3TS4FOnRUMDk="; 31 }) 32 ]; 33 34 SETUPTOOLS_SCM_PRETEND_VERSION = version; 35 36 nativeBuildInputs = [ 37 setuptools-scm 38 ]; 39 40 propagatedBuildInputs = [ 41 astropy 42 requests 43 ]; 44 45 nativeCheckInputs = [ 46 pillow 47 pytestCheckHook 48 pytest-astropy 49 requests-mock 50 ]; 51 52 disabledTestPaths = [ 53 # touches network 54 "pyvo/dal/tests/test_datalink.py" 55 ]; 56 57 pythonImportsCheck = [ "pyvo" ]; 58 59 meta = with lib; { 60 description = "Astropy affiliated package for accessing Virtual Observatory data and services"; 61 homepage = "https://github.com/astropy/pyvo"; 62 license = licenses.bsd3; 63 maintainers = with maintainers; [ smaret ]; 64 }; 65}