55 lines
922 B
Nix
Raw Normal View History

2019-07-15 12:17:51 -04:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest-astropy
, semantic-version
, pyyaml
, jsonschema
, six
, numpy
, isPy27
, astropy
, setuptools_scm
, setuptools
2019-07-15 12:17:51 -04:00
}:
buildPythonPackage rec {
pname = "asdf";
2020-08-29 13:41:47 +02:00
version = "2.7.1";
2019-07-15 12:17:51 -04:00
disabled = isPy27;
2020-12-28 13:33:33 -05:00
format = "pyproject";
2019-07-15 12:17:51 -04:00
src = fetchPypi {
inherit pname version;
2020-08-29 13:41:47 +02:00
sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
2019-07-15 12:17:51 -04:00
};
checkInputs = [
pytest-astropy
astropy
];
propagatedBuildInputs = [
semantic-version
pyyaml
jsonschema
six
numpy
setuptools_scm
setuptools
2019-07-15 12:17:51 -04:00
];
checkPhase = ''
2020-12-28 13:33:33 -05:00
PY_IGNORE_IMPORTMISMATCH=1 pytest
2019-07-15 12:17:51 -04: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 12:17:51 -04:00
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
2021-03-08 02:08:08 +01:00
# many ValueError in tests
broken = true;
2019-07-15 12:17:51 -04:00
};
}