1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, pytest 6, pytest-cov 7, pytestCheckHook 8, numpy 9, astropy 10, scipy 11, h5py 12, scikitimage 13}: 14 15buildPythonPackage rec { 16 pname = "pytest-astropy-header"; 17 version = "0.1.2"; 18 format = "pyproject"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "1y87agr324p6x5gvhziymxjlw54pyn4gqnd49papbl941djpkp5g"; 23 }; 24 patches = [ (fetchpatch { 25 url = "https://github.com/astropy/pytest-astropy-header/pull/16.patch"; 26 sha256 = "11ln63zq0kgsdx1jw3prlzpcdbxmc99p9cwr18s0x6apy0k6df31"; 27 }) 28 (fetchpatch { 29 url = "https://github.com/astropy/pytest-astropy-header/pull/29.patch"; 30 sha256 = "18l434c926r5z1iq3b6lpnp0lrssszars9y1y9hs6216r60jgjpl"; 31 }) 32 ]; 33 34 buildInputs = [ 35 pytest 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 pytest-cov 41 numpy 42 scipy 43 h5py 44 scikitimage 45 astropy 46 ]; 47 48 meta = with lib; { 49 description = "Plugin to add diagnostic information to the header of the test output"; 50 homepage = "https://astropy.org"; 51 license = licenses.bsd3; 52 maintainers = [ maintainers.costrouc ]; 53 }; 54}