2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-04-15 01:41:22 +00:00
|
|
|
, asdf-standard
|
|
|
|
, asdf-transform-schemas
|
2021-03-23 19:22:30 +00:00
|
|
|
, astropy
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-14 22:03:04 +00:00
|
|
|
, importlib-resources
|
|
|
|
, jmespath
|
2020-04-24 23:36:52 +00:00
|
|
|
, jsonschema
|
2022-04-15 01:41:22 +00:00
|
|
|
, lz4
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2021-03-23 19:22:30 +00:00
|
|
|
, packaging
|
|
|
|
, pytest-astropy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, semantic-version
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asdf";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.12.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-WRSDTQd7o79ouar9xka58nzl5W4cJBFn1GHe5DsQI+k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
asdf-standard
|
|
|
|
asdf-transform-schemas
|
2021-07-14 22:03:04 +00:00
|
|
|
jmespath
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonschema
|
|
|
|
numpy
|
2021-03-23 19:22:30 +00:00
|
|
|
packaging
|
|
|
|
pyyaml
|
|
|
|
semantic-version
|
2021-07-14 22:03:04 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
checkInputs = [
|
|
|
|
astropy
|
2022-04-15 01:41:22 +00:00
|
|
|
lz4
|
|
|
|
pytest-astropy
|
2021-03-23 19:22:30 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PY_IGNORE_IMPORTMISMATCH=1
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asdf"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tools to handle ASDF files";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://github.com/asdf-format/asdf";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-07-14 22:03:04 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|