Files
nixpkgs/pkgs/development/python-modules/gwcs/default.nix

62 lines
1.1 KiB
Nix

{
lib,
asdf-astropy,
asdf-wcs-schemas,
asdf,
astropy,
buildPythonPackage,
fetchFromGitHub,
numpy,
pytest-doctestplus,
pytestCheckHook,
scipy,
setuptools-scm,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "gwcs";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "spacetelescope";
repo = "gwcs";
tag = finalAttrs.version;
hash = "sha256-Wh+3xVjXjTSlmlZuia2Jclj6tzjqlYDQ+giocGEkyAE=";
};
postPatch = ''
sed -i "/--doctest-rst/d" pyproject.toml
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asdf
asdf-astropy
asdf-wcs-schemas
astropy
numpy
scipy
];
nativeCheckInputs = [
pytest-doctestplus
pytestCheckHook
];
pythonImportsCheck = [ "gwcs" ];
meta = {
description = "Module to manage the Generalized World Coordinate System";
homepage = "https://github.com/spacetelescope/gwcs";
changelog = "https://github.com/spacetelescope/gwcs/blob/${finalAttrs.src.tag}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
})