567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
asdf-astropy,
|
|
asdf-coordinates-schemas,
|
|
asdf-standard,
|
|
asdf-transform-schemas,
|
|
asdf,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asdf-wcs-schemas";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asdf-format";
|
|
repo = "asdf-wcs-schemas";
|
|
tag = version;
|
|
hash = "sha256-S9SAQzy+FQ2idNDydYnexb3QJfd6vG/JKYg5z0tjkNo=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
asdf-coordinates-schemas
|
|
asdf-standard
|
|
asdf-transform-schemas
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
asdf
|
|
asdf-astropy
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "asdf_wcs_schemas" ];
|
|
|
|
meta = {
|
|
description = "World Coordinate System (WCS) ASDF schemas";
|
|
homepage = "https://github.com/asdf-format/asdf-wcs-schemas";
|
|
changelog = "https://github.com/asdf-format/asdf-wcs-schemas/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|