1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, six
6, pytest
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-arraydiff";
11 version = "0.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
16 };
17
18 buildInputs = [ pytest ];
19
20 propagatedBuildInputs = [
21 numpy
22 six
23 ];
24
25 # The tests requires astropy, which itself requires
26 # pytest-arraydiff. This causes an infinite recursion if the tests
27 # are enabled.
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Pytest plugin to help with comparing array output from tests";
32 homepage = "https://github.com/astrofrog/pytest-arraydiff";
33 license = licenses.bsd3;
34 maintainers = [ maintainers.costrouc ];
35 };
36}