1{ lib, buildPythonPackage, fetchFromGitHub 2, setuptools-scm, pytest 3}: 4 5buildPythonPackage rec { 6 pname = "pytest-datadir"; 7 version = "1.3.1"; 8 format = "pyproject"; 9 10 src = fetchFromGitHub { 11 owner = "gabrielcnr"; 12 repo = pname; 13 rev = version; 14 sha256 = "0kwgp6sqnqnmww5r0dkmyfpi0lmw0iwxz3fnwn2fs8w6bvixzznf"; 15 }; 16 17 nativeBuildInputs = [ setuptools-scm ]; 18 19 preBuild = '' 20 export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" 21 ''; 22 23 checkInputs = [ pytest ]; 24 checkPhase = "pytest"; 25 26 meta = with lib; { 27 homepage = "https://github.com/gabrielcnr/pytest-datadir"; 28 description = "pytest plugin for manipulating test data directories and files"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ kira-bruneau ]; 31 }; 32}