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

61 lines
1.1 KiB
Nix

{
lib,
asdf-astropy,
asdf-wcs-schemas,
asdf,
astropy,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytest-astropy,
pytestCheckHook,
pythonOlder,
scipy,
setuptools-scm,
setuptools,
tomli,
}:
buildPythonPackage rec {
pname = "gwcs";
version = "0.21.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "spacetelescope";
repo = "gwcs";
rev = "refs/tags/${version}";
hash = "sha256-76h2lDIaPHj7HarVcE0t5k6CA/hLCwquaz+2wMsKj+Y=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asdf
asdf-astropy
asdf-wcs-schemas
astropy
numpy
scipy
];
nativeCheckInputs = [
pytest-astropy
pytestCheckHook
];
pythonImportsCheck = [ "gwcs" ];
meta = with lib; {
description = "Module to manage the Generalized World Coordinate System";
homepage = "https://github.com/spacetelescope/gwcs";
changelog = "https://github.com/spacetelescope/gwcs/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}