depot/third_party/nixpkgs/pkgs/development/python-modules/asdf-astropy/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

70 lines
1.3 KiB
Nix

{
lib,
asdf-coordinates-schemas,
asdf-standard,
asdf-transform-schemas,
asdf,
astropy,
buildPythonPackage,
fetchFromGitHub,
numpy,
packaging,
pytest-astropy,
pytestCheckHook,
pythonOlder,
scipy,
setuptools-scm,
setuptools,
tomli,
wheel,
}:
buildPythonPackage rec {
pname = "asdf-astropy";
version = "0.6.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "astropy";
repo = "asdf-astropy";
rev = "refs/tags/${version}";
hash = "sha256-dOd9QdBOu7QotRiHkXJoIqaHG6U9odTlRmy22/nvvuw=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
asdf
asdf-coordinates-schemas
asdf-standard
asdf-transform-schemas
astropy
numpy
packaging
];
nativeCheckInputs = [
pytest-astropy
pytestCheckHook
scipy
];
pythonImportsCheck = [ "asdf_astropy" ];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Extension library for ASDF to provide support for Astropy";
homepage = "https://github.com/astropy/asdf-astropy";
changelog = "https://github.com/astropy/asdf-astropy/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}