1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, six
6, pytest
7, astropy
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-arraydiff";
12 version = "0.3";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
17 };
18
19 propagatedBuildInputs = [
20 numpy
21 six
22 pytest
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}