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