Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools-scm 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-datadir"; 10 version = "1.4.1"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "gabrielcnr"; 15 repo = "pytest-datadir"; 16 rev = "refs/tags/${version}"; 17 hash = "sha256-HyJ0rU1nHqRv8SHFS8m3GZ5409+JZIkoDgIVjy4ol54="; 18 }; 19 20 SETUPTOOLS_SCM_PRETEND_VERSION = version; 21 nativeBuildInputs = [ setuptools-scm ]; 22 nativeCheckInputs = [ pytestCheckHook ]; 23 pythonImportsCheck = [ "pytest_datadir" ]; 24 25 meta = with lib; { 26 description = "Pytest plugin for manipulating test data directories and files"; 27 homepage = "https://github.com/gabrielcnr/pytest-datadir"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ kira-bruneau ]; 30 }; 31}