1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, setuptools 6, setuptools-scm 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-datadir"; 12 version = "1.5.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "gabrielcnr"; 19 repo = "pytest-datadir"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-sRLqL+8Jf5Kz+qscuG3hClUuPA+33PQa+ob1ht/7CJE="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools 28 setuptools-scm 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "pytest_datadir" ]; 34 35 meta = with lib; { 36 description = "Pytest plugin for manipulating test data directories and files"; 37 homepage = "https://github.com/gabrielcnr/pytest-datadir"; 38 changelog = "https://github.com/gabrielcnr/pytest-datadir/blob/v${version}/CHANGELOG.rst"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ kira-bruneau ]; 41 }; 42}