mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
06041fd174
Bump to fix the broken build of the package:
* Disable doctest as they're currently broken in our test env
* Loosen version constraint for `semantic_version` as it was only
introduced to work around some deprecation warnings[1]
See also: https://hydra.nixos.org/build/102480957
ZHF #68361
[1] 3446ae072b
58 lines
987 B
Nix
58 lines
987 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-astropy
|
|
, semantic-version
|
|
, pyyaml
|
|
, jsonschema
|
|
, six
|
|
, numpy
|
|
, isPy27
|
|
, astropy
|
|
, setuptools_scm
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asdf";
|
|
version = "2.4.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1wlgx8469wwsczc2gjka9k1a03yzird67zg3va0kg8y6j1qmbwvg";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \
|
|
--replace "doctest_plus = enabled" ""
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytest-astropy
|
|
astropy
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
semantic-version
|
|
pyyaml
|
|
jsonschema
|
|
six
|
|
numpy
|
|
setuptools_scm
|
|
setuptools
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python tools to handle ASDF files";
|
|
homepage = https://github.com/spacetelescope/asdf;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|