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 15:02:42 +00:00
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
# build time
, astropy-extension-helpers
, astropy-helpers
2020-11-20 21:00:02 +00:00
, cython
, jinja2
, setuptools-scm
# runtime
2017-06-07 15:02:42 +00:00
, numpy
, packaging
2020-12-28 00:16:28 +00:00
, pyerfa
, pyyaml
2019-07-23 09:50:25 +00:00
}:
2017-06-07 15:02:42 +00:00
let
2017-06-07 15:02:42 +00:00
pname = "astropy";
2022-07-16 10:58:57 +00:00
version = "5.1";
in
buildPythonPackage {
inherit pname version;
2020-12-28 00:16:28 +00:00
format = "pyproject";
2017-06-07 15:02:42 +00:00
disabled = pythonOlder "3.8"; # according to setup.cfg
2017-06-07 15:02:42 +00:00
src = fetchPypi {
inherit pname version;
2022-07-16 10:58:57 +00:00
sha256 = "sha256-HbGyx+3fx3PKZvozvQeyXVucO17uK5NODKJ3+lsbe34=";
2017-06-07 15:02:42 +00:00
};
2017-09-06 15:15:30 +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)
doCheck = false;
2020-12-28 00:16:28 +00:00
meta = with lib; {
2017-06-07 15:02:42 +00:00
description = "Astronomy/Astrophysics library for Python";
homepage = "https://www.astropy.org";
2020-12-28 00:16:28 +00:00
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.kentjames ];
2017-06-07 15:02:42 +00:00
};
}