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