2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-15 15:56:04 +00:00
|
|
|
, hypothesis
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytest-arraydiff
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest-astropy-header
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-doctestplus
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest-filter-subpackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytest-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-openfiles
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytest-remotedata
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-08-22 07:53:02 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-astropy";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.10.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-hePGbO7eTOZo9HOzzzd/yyqjxI4k8oqqN3roYATM4hE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-06-15 15:56:04 +00:00
|
|
|
hypothesis
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-arraydiff
|
2020-06-15 15:56:04 +00:00
|
|
|
pytest-astropy-header
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-doctestplus
|
2020-06-15 15:56:04 +00:00
|
|
|
pytest-filter-subpackage
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-mock
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-openfiles
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-remotedata
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# pytest-astropy is a meta package that only propagates requirements
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Meta-package containing dependencies for testing";
|
|
|
|
homepage = "https://astropy.org";
|
|
|
|
license = licenses.bsd3;
|
2021-08-22 07:53:02 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|