python3Packages.asdf: switch to pytestCheckHook
This commit is contained in:
parent
05aa0823a8
commit
1519f8f976
@ -1,54 +1,55 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, astropy
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest-astropy
|
|
||||||
, semantic-version
|
|
||||||
, pyyaml
|
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, six
|
|
||||||
, numpy
|
, numpy
|
||||||
, isPy27
|
, packaging
|
||||||
, astropy
|
, pytest-astropy
|
||||||
, setuptools_scm
|
, pytestCheckHook
|
||||||
, setuptools
|
, pythonOlder
|
||||||
|
, pyyaml
|
||||||
|
, semantic-version
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asdf";
|
pname = "asdf";
|
||||||
version = "2.7.2";
|
version = "2.7.3";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "4ba2e31cb24b974a11dfae3edee23db2e6bea2d00608604d062366aa3af6e81a";
|
sha256 = "11dyr295wn5m2pcynlwj7kgw9xr66msfvwn1m6a5vv13vzj19spp";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
jsonschema
|
||||||
|
numpy
|
||||||
|
packaging
|
||||||
|
pyyaml
|
||||||
|
semantic-version
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest-astropy
|
pytest-astropy
|
||||||
astropy
|
astropy
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
preCheck = ''
|
||||||
semantic-version
|
export PY_IGNORE_IMPORTMISMATCH=1
|
||||||
pyyaml
|
|
||||||
jsonschema
|
|
||||||
six
|
|
||||||
numpy
|
|
||||||
setuptools_scm
|
|
||||||
setuptools
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
PY_IGNORE_IMPORTMISMATCH=1 pytest
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "asdf" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python tools to handle ASDF files";
|
description = "Python tools to handle ASDF files";
|
||||||
homepage = "https://github.com/spacetelescope/asdf";
|
homepage = "https://github.com/spacetelescope/asdf";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
# many ValueError in tests
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user