nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 881 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 setuptools-scm, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-datadir"; 12 version = "1.8.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "gabrielcnr"; 17 repo = "pytest-datadir"; 18 tag = "v${version}"; 19 hash = "sha256-ttzYFzePPpFY6DfMGLVImZMiehuR9IhmIFxBlgrDDmk="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 setuptools-scm 25 ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 pythonImportsCheck = [ "pytest_datadir" ]; 30 31 meta = { 32 description = "Pytest plugin for manipulating test data directories and files"; 33 homepage = "https://github.com/gabrielcnr/pytest-datadir"; 34 changelog = "https://github.com/gabrielcnr/pytest-datadir/blob/${src.tag}/CHANGELOG.rst"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ kira-bruneau ]; 37 }; 38}