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 buildInputs = [ pytest ];
20
21 propagatedBuildInputs = [
22 numpy
23 six
24 ];
25
26 # The tests requires astropy, which itself requires
27 # pytest-arraydiff. This causes an infinite recursion if the tests
28 # are enabled.
29 doCheck = false;
30
31 meta = with lib; {
32 description = "Pytest plugin to help with comparing array output from tests";
33 homepage = "https://github.com/astrofrog/pytest-arraydiff";
34 license = licenses.bsd3;
35 maintainers = [ maintainers.costrouc ];
36 };
37}