1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 attrs,
6 hypothesis,
7 pytest,
8 pytest-arraydiff,
9 pytest-astropy-header,
10 pytest-cov,
11 pytest-doctestplus,
12 pytest-filter-subpackage,
13 pytest-mock,
14 pytest-openfiles,
15 pytest-remotedata,
16 setuptools,
17 setuptools-scm,
18 pythonOlder,
19}:
20
21buildPythonPackage rec {
22 pname = "pytest-astropy";
23 version = "0.11.0";
24 pyproject = true;
25
26 disabled = pythonOlder "3.7";
27
28 src = fetchPypi {
29 inherit pname version;
30 hash = "sha256-Tq6qme2RFj7Y+arBMscKgfJbxMEvPNVNujKfwmxnObU=";
31 };
32
33 nativeBuildInputs = [
34 setuptools
35 setuptools-scm
36 ];
37
38 buildInputs = [ pytest ];
39
40 propagatedBuildInputs = [
41 attrs
42 hypothesis
43 pytest-arraydiff
44 pytest-astropy-header
45 pytest-cov
46 pytest-doctestplus
47 pytest-filter-subpackage
48 pytest-mock
49 pytest-openfiles
50 pytest-remotedata
51 ];
52
53 # pytest-astropy is a meta package that only propagates requirements
54 doCheck = false;
55
56 meta = with lib; {
57 description = "Meta-package containing dependencies for testing";
58 homepage = "https://astropy.org";
59 license = licenses.bsd3;
60 maintainers = with maintainers; [ ];
61 };
62}