mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
python312Packages.asdf-astropy: init at 0.6.1
Extension library for ASDF to provide support for Astropy https://github.com/astropy/asdf-astropy
This commit is contained in:
70
pkgs/development/python-modules/asdf-astropy/default.nix
Normal file
70
pkgs/development/python-modules/asdf-astropy/default.nix
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -787,6 +787,8 @@ self: super: with self; {
|
||||
|
||||
asdf = callPackage ../development/python-modules/asdf { };
|
||||
|
||||
asdf-astropy = callPackage ../development/python-modules/asdf-astropy { };
|
||||
|
||||
asdf-coordinates-schemas = callPackage ../development/python-modules/asdf-coordinates-schemas { };
|
||||
|
||||
asdf-standard = callPackage ../development/python-modules/asdf-standard { };
|
||||
|
||||
Reference in New Issue
Block a user