2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
attrs,
|
|
|
|
hypothesis,
|
|
|
|
pytest,
|
|
|
|
pytest-arraydiff,
|
|
|
|
pytest-astropy-header,
|
|
|
|
pytest-cov,
|
|
|
|
pytest-doctestplus,
|
|
|
|
pytest-filter-subpackage,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-openfiles,
|
|
|
|
pytest-remotedata,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-astropy";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.11.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-Tq6qme2RFj7Y+arBMscKgfJbxMEvPNVNujKfwmxnObU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-06-15 15:56:04 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
attrs
|
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
|
2022-09-30 11:47:45 +00:00
|
|
|
pytest-cov
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|