1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, py 5, pytest 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-datafiles"; 12 version = "2.0.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "omarkohl"; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-M0Lnsqi05Xs0uN6LlafNS7HJZOut+nrMZyvGPMMhIkc="; 22 }; 23 24 buildInputs = [ 25 py 26 pytest 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pytest_datafiles" 35 ]; 36 37 meta = with lib; { 38 description = "Pytest plugin to create a tmpdir containing predefined files/directories"; 39 homepage = "https://github.com/omarkohl/pytest-datafiles"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ ]; 42 }; 43}