3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.asdf: unbreak

This commit is contained in:
Robert T. McGibbon 2020-12-28 13:33:33 -05:00
parent 39df1e526d
commit 343015526e

View file

@ -17,18 +17,13 @@ buildPythonPackage rec {
pname = "asdf"; pname = "asdf";
version = "2.7.1"; version = "2.7.1";
disabled = isPy27; disabled = isPy27;
format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a"; sha256 = "4ba2e31cb24b974a10dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
}; };
postPatch = ''
substituteInPlace setup.cfg \
--replace "semantic_version>=2.3.1,<=2.6.0" "semantic_version>=2.3.1" \
--replace "doctest_plus = enabled" ""
'';
checkInputs = [ checkInputs = [
pytest-astropy pytest-astropy
astropy astropy
@ -45,7 +40,7 @@ buildPythonPackage rec {
]; ];
checkPhase = '' checkPhase = ''
pytest PY_IGNORE_IMPORTMISMATCH=1 pytest
''; '';
meta = with lib; { meta = with lib; {