summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-astropy-header/default.nix
blob: 963e621986cf0b82fe3a3676cec89c727abdf4cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pytest
, pytestcov
, pytestCheckHook
, numpy
, astropy
, scipy
, h5py
, scikitimage
}:

buildPythonPackage rec {
  pname = "pytest-astropy-header";
  version = "0.1.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1y87agr324p6x5gvhziymxjlw54pyn4gqnd49papbl941djpkp5g";
  };
  patches = [ (fetchpatch {
      url = "https://github.com/astropy/pytest-astropy-header/pull/16.patch";
      sha256 = "11ln63zq0kgsdx1jw3prlzpcdbxmc99p9cwr18s0x6apy0k6df31";
    })
    (fetchpatch {
      url = "https://github.com/astropy/pytest-astropy-header/pull/29.patch";
      sha256 = "18l434c926r5z1iq3b6lpnp0lrssszars9y1y9hs6216r60jgjpl";
    })
  ];

  buildInputs = [
    pytest
  ];

  checkInputs = [
    pytestCheckHook
    pytestcov
    numpy
    scipy
    h5py
    scikitimage
    astropy
  ];

  meta = with lib; {
    description = "Plugin to add diagnostic information to the header of the test output";
    homepage = "https://astropy.org";
    license = licenses.bsd3;
    maintainers = [ maintainers.costrouc ];
  };
}