depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-arraydiff/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

37 lines
773 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, six
, pytest
, astropy
}:
buildPythonPackage rec {
pname = "pytest-arraydiff";
version = "0.3";
src = fetchPypi {
inherit pname version;
sha256 = "de2d62f53ecc107ed754d70d562adfa7573677a263216a7f19aa332f20dc6c15";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
numpy
six
];
# The tests requires astropy, which itself requires
# pytest-arraydiff. This causes an infinite recursion if the tests
# are enabled.
doCheck = false;
meta = with lib; {
description = "Pytest plugin to help with comparing array output from tests";
homepage = "https://github.com/astrofrog/pytest-arraydiff";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}