1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, colorama 6, pytest 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-resource-path"; 12 version = "1.3.0"; 13 disabled = pythonOlder "3.5"; 14 15 src = fetchFromGitHub { 16 owner = "yukihiko-shinoda"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "1siv3pk4fsabz254fdzr7c0pxy124habnbw4ym66pfk883fr96g2"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.cfg \ 24 --replace "pytest-runner" "" 25 ''; 26 27 buildInputs = [ 28 pytest 29 ]; 30 31 propagatedBuildInputs = [ 32 colorama 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "pytest_resource_path" 41 ]; 42 43 meta = with lib; { 44 description = "Pytest plugin to provide path for uniform access to test resources"; 45 homepage = "https://github.com/yukihiko-shinoda/pytest-resource-path"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}