nixpkgs/pkgs/development/python-modules/asdf/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.2 KiB
Nix
Raw Normal View History

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