2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# build time
|
|
|
|
, astropy-extension-helpers
|
|
|
|
, astropy-helpers
|
2020-11-24 20:58:05 +00:00
|
|
|
, cython
|
|
|
|
, jinja2
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools-scm
|
|
|
|
|
|
|
|
# runtime
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-02-10 20:34:41 +00:00
|
|
|
, packaging
|
2021-01-05 17:05:55 +00:00
|
|
|
, pyerfa
|
2022-02-10 20:34:41 +00:00
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "astropy";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "5.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
2021-01-05 17:05:55 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.8"; # according to setup.cfg
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-HbGyx+3fx3PKZvozvQeyXVucO17uK5NODKJ3+lsbe34=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00: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)
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Astronomy/Astrophysics library for Python";
|
|
|
|
homepage = "https://www.astropy.org";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.kentjames ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|