2019-07-15 16:47:58 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-20 22:58:28 +01:00
|
|
|
, hypothesis
|
2019-07-15 16:47:58 +01:00
|
|
|
, pytest
|
2020-06-20 22:58:28 +01:00
|
|
|
, pytest-astropy-header
|
2019-07-15 16:47:58 +01:00
|
|
|
, pytest-doctestplus
|
2020-06-20 22:58:28 +01:00
|
|
|
, pytest-filter-subpackage
|
2019-07-15 16:47:58 +01:00
|
|
|
, pytest-remotedata
|
|
|
|
, pytest-openfiles
|
|
|
|
, pytest-arraydiff
|
2020-06-20 22:58:28 +01:00
|
|
|
, setuptools_scm
|
2019-07-15 16:47:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-astropy";
|
2020-06-06 07:47:26 +01:00
|
|
|
version = "0.8.0";
|
2019-07-15 16:47:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:26 +01:00
|
|
|
sha256 = "619800eb2cbf64548fbea25268efe7c6f6ae206cb4825f34abd36f27bcf946a2";
|
2019-07-15 16:47:58 +01:00
|
|
|
};
|
|
|
|
|
2020-06-20 22:58:28 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
|
|
|
|
2019-07-15 16:47:58 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-06-20 22:58:28 +01:00
|
|
|
hypothesis
|
2019-07-15 16:47:58 +01:00
|
|
|
pytest
|
2020-06-20 22:58:28 +01:00
|
|
|
pytest-astropy-header
|
2019-07-15 16:47:58 +01:00
|
|
|
pytest-doctestplus
|
2020-06-20 22:58:28 +01:00
|
|
|
pytest-filter-subpackage
|
2019-07-15 16:47:58 +01:00
|
|
|
pytest-remotedata
|
|
|
|
pytest-openfiles
|
|
|
|
pytest-arraydiff
|
|
|
|
];
|
|
|
|
|
|
|
|
# pytest-astropy is a meta package and has no tests
|
2020-06-20 22:58:28 +01:00
|
|
|
checkPhase = ":";
|
2019-07-15 16:47:58 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Meta-package containing dependencies for testing";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://astropy.org";
|
2019-07-15 16:47:58 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|