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