2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, asdf-standard
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, importlib-resources
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asdf-transform-schemas";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.0";
|
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "asdf_transform_schemas";
|
|
|
|
inherit version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-3n/cP+41+5V/wylXh3oOnX3U0uhRvWMaclnxHCvSlMo=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asdf-standard
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
];
|
|
|
|
|
|
|
|
# Circular dependency on asdf
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"asdf_transform_schemas"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ASDF schemas for validating transform tags";
|
|
|
|
homepage = "https://github.com/asdf-format/asdf-transform-schemas";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/asdf-format/asdf-transform-schemas/releases/tag/${version}";
|
2022-04-15 01:41:22 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|