2019-07-15 17:17:51 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-astropy
|
|
|
|
, semantic-version
|
|
|
|
, pyyaml
|
|
|
|
, jsonschema
|
|
|
|
, six
|
|
|
|
, numpy
|
|
|
|
, isPy27
|
|
|
|
, astropy
|
2019-10-03 10:03:07 +01:00
|
|
|
, setuptools_scm
|
|
|
|
, setuptools
|
2019-07-15 17:17:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asdf";
|
2020-05-08 20:44:52 +01:00
|
|
|
version = "2.6.0";
|
2019-07-15 17:17:51 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-08 20:44:52 +01:00
|
|
|
sha256 = "1ym9mmxjpnnlinly1rxfqj9rlyl2fv7dxc81f30n1b8n9pwc6jb5";
|
2019-07-15 17:17:51 +01:00
|
|
|
};
|
|
|
|
|
2019-10-03 10:03:07 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \
|
|
|
|
--replace "doctest_plus = enabled" ""
|
|
|
|
'';
|
|
|
|
|
2019-07-15 17:17:51 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-astropy
|
|
|
|
astropy
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
semantic-version
|
|
|
|
pyyaml
|
|
|
|
jsonschema
|
|
|
|
six
|
|
|
|
numpy
|
2019-10-03 10:03:07 +01:00
|
|
|
setuptools_scm
|
|
|
|
setuptools
|
2019-07-15 17:17:51 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 17:17:51 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|