diff options
author | Sébastien Maret <sebastien.maret@icloud.com> | 2022-04-09 14:20:10 +0200 |
---|---|---|
committer | Sébastien Maret <sebastien.maret@icloud.com> | 2022-04-09 16:43:38 +0200 |
commit | bba4dd5dd2b26d4be1c10434c56de5f83c9a81a1 (patch) | |
tree | e5e94ab8a0b47cee90edf382041dfcf892c3520b /pkgs/development | |
parent | 782858060ab894a71e7da4e46c58e7088fbc9ee5 (diff) |
python3Packages.pyvo: init at 1.3
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyvo/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyvo/default.nix b/pkgs/development/python-modules/pyvo/default.nix new file mode 100644 index 0000000000000..715cf0196aa41 --- /dev/null +++ b/pkgs/development/python-modules/pyvo/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchPypi +, astropy +, pillow +, pythonOlder +, pytestCheckHook +, pytest-astropy +, requests +, requests-mock +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "pyvo"; + version = "1.3"; + + disabled = pythonOlder "3.8"; # according to setup.cfg + + src = fetchPypi { + inherit pname version; + sha256 = "846a54a05a8ddb47a8c2cc3077434779b0e4ccc1b74a7a5408593cb673307d67"; + }; + + 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 = "github.com/astropy/pyvo"; + license = licenses.bsd3; + maintainers = with maintainers; [ smaret ]; + }; +} |