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.

61 lines
1.1 KiB
Nix
Raw Normal View History

2019-07-15 16:17:51 +00:00
{ lib
, 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
, numpy
, packaging
, pytest-astropy
, pytestCheckHook
, pythonOlder
, pyyaml
, semantic-version
, setuptools-scm
2019-07-15 16:17:51 +00:00
}:
buildPythonPackage rec {
pname = "asdf";
2022-01-14 00:58:07 +00:00
version = "2.8.3";
disabled = pythonOlder "3.6";
2020-12-28 18:33:33 +00:00
format = "pyproject";
2019-07-15 16:17:51 +00:00
src = fetchPypi {
inherit pname version;
2022-01-14 00:58:07 +00:00
sha256 = "de0f70ffb2e0d539461940d6f7529c3548541fa098d8edc37af256af61c09b44";
2019-07-15 16:17:51 +00:00
};
nativeBuildInputs = [ setuptools-scm ];
2019-07-15 16:17:51 +00:00
propagatedBuildInputs = [
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 = [
pytest-astropy
astropy
pytestCheckHook
];
preCheck = ''
export PY_IGNORE_IMPORTMISMATCH=1
2019-07-15 16:17:51 +00:00
'';
pythonImportsCheck = [ "asdf" ];
2019-07-15 16:17:51 +00:00
meta = with lib; {
description = "Python tools to handle ASDF files";
2020-03-03 02:26:35 +00:00
homepage = "https://github.com/spacetelescope/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
};
}