1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/pkgs/development/python-modules/astropy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-07 17:02:42 +02:00
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
# build time
, astropy-extension-helpers
, astropy-helpers
2020-11-20 13:00:02 -08:00
, cython
, jinja2
, setuptools-scm
# runtime
2017-06-07 17:02:42 +02:00
, numpy
, packaging
2020-12-27 19:16:28 -05:00
, pyerfa
, pyyaml
2019-07-23 11:50:25 +02:00
}:
2017-06-07 17:02:42 +02:00
let
2017-06-07 17:02:42 +02:00
pname = "astropy";
2022-01-13 16:58:07 -08:00
version = "5.0";
in
buildPythonPackage {
inherit pname version;
2020-12-27 19:16:28 -05:00
format = "pyproject";
2017-06-07 17:02:42 +02:00
disabled = pythonOlder "3.8"; # according to setup.cfg
2017-06-07 17:02:42 +02:00
src = fetchPypi {
inherit pname version;
2022-01-13 16:58:07 -08:00
sha256 = "70203e151e13292586a817b4069ce1aad4643567aff38b1d191c173bc54f3927";
2017-06-07 17:02:42 +02:00
};
2017-09-06 17:15:30 +02:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
astropy-extension-helpers
astropy-helpers
cython
jinja2
setuptools-scm
];
propagatedBuildInputs = [
numpy
packaging
pyerfa
pyyaml
];
# infinite recursion with pytest-astropy (pytest-astropy-header depends on astropy itself)
doCheck = false;
2020-12-27 19:16:28 -05:00
meta = with lib; {
2017-06-07 17:02:42 +02:00
description = "Astronomy/Astrophysics library for Python";
homepage = "https://www.astropy.org";
2020-12-27 19:16:28 -05:00
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.kentjames ];
2017-06-07 17:02:42 +02:00
};
}