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
|
2021-11-02 16:30:28 +00:00
|
|
|
, pytest-arraydiff
|
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
|
2021-11-02 16:30:28 +00:00
|
|
|
, pytest-mock
|
2019-07-15 16:47:58 +01:00
|
|
|
, pytest-openfiles
|
2021-11-02 16:30:28 +00:00
|
|
|
, pytest-remotedata
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2021-08-19 09:28:17 +01:00
|
|
|
, pythonOlder
|
2019-07-15 16:47:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-astropy";
|
2022-04-13 22:32:58 +01:00
|
|
|
version = "0.10.0";
|
2021-11-02 18:56:04 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-07-15 16:47:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-13 22:32:58 +01:00
|
|
|
sha256 = "sha256-hePGbO7eTOZo9HOzzzd/yyqjxI4k8oqqN3roYATM4hE=";
|
2019-07-15 16:47:58 +01:00
|
|
|
};
|
|
|
|
|
2020-06-20 22:58:28 +01:00
|
|
|
nativeBuildInputs = [
|
2021-06-03 11:09:11 +01:00
|
|
|
setuptools-scm
|
2020-06-20 22:58:28 +01:00
|
|
|
];
|
|
|
|
|
2021-08-19 09:28:17 +01:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-03-12 22:20:19 +00:00
|
|
|
|
2019-07-15 16:47:58 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-06-20 22:58:28 +01:00
|
|
|
hypothesis
|
2021-11-02 16:30:28 +00:00
|
|
|
pytest-arraydiff
|
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
|
2021-11-02 16:30:28 +00:00
|
|
|
pytest-mock
|
2019-07-15 16:47:58 +01:00
|
|
|
pytest-openfiles
|
2021-11-02 16:30:28 +00:00
|
|
|
pytest-remotedata
|
2019-07-15 16:47:58 +01:00
|
|
|
];
|
|
|
|
|
2021-11-02 18:56:04 +00:00
|
|
|
# pytest-astropy is a meta package that only propagates requirements
|
|
|
|
doCheck = false;
|
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;
|
2021-08-19 09:28:17 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-07-15 16:47:58 +01:00
|
|
|
};
|
|
|
|
}
|