1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 numpy, 6 pytest, 7 pythonOlder, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-arraydiff"; 13 version = "0.6.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-KTexRQ/JNWIPJHCdh9QMZ+BVoEPXuFQaJf36mU3aZ94="; 21 }; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 buildInputs = [ pytest ]; 26 27 propagatedBuildInputs = [ numpy ]; 28 29 # The tests requires astropy, which itself requires pytest-arraydiff 30 doCheck = false; 31 32 pythonImportsCheck = [ "pytest_arraydiff" ]; 33 34 meta = with lib; { 35 description = "Pytest plugin to help with comparing array output from tests"; 36 homepage = "https://github.com/astrofrog/pytest-arraydiff"; 37 license = licenses.bsd3; 38 maintainers = [ ]; 39 }; 40}