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