nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 56 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, astropy 5, pillow 6, pythonOlder 7, pytestCheckHook 8, pytest-astropy 9, requests 10, requests-mock 11, setuptools-scm 12}: 13 14buildPythonPackage rec { 15 pname = "pyvo"; 16 version = "1.3"; 17 18 disabled = pythonOlder "3.8"; # according to setup.cfg 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "846a54a05a8ddb47a8c2cc3077434779b0e4ccc1b74a7a5408593cb673307d67"; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 astropy 33 requests 34 ]; 35 36 checkInputs = [ 37 pillow 38 pytestCheckHook 39 pytest-astropy 40 requests-mock 41 ]; 42 43 disabledTestPaths = [ 44 # touches network 45 "pyvo/dal/tests/test_datalink.py" 46 ]; 47 48 pythonImportsCheck = [ "pyvo" ]; 49 50 meta = with lib; { 51 description = "Astropy affiliated package for accessing Virtual Observatory data and services"; 52 homepage = "https://github.com/astropy/pyvo"; 53 license = licenses.bsd3; 54 maintainers = with maintainers; [ smaret ]; 55 }; 56}