Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, poetry-core 5, pytest 6, pytestCheckHook 7, pythonOlder 8, setuptools-scm 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-metadata"; 13 version = "2.0.4"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "pytest_metadata"; 20 inherit version; 21 hash = "sha256-/MZT9l/jA1tHiCC1KE+/D1KANiLuP2Ci+u16fTuh9B4="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 setuptools-scm 27 ]; 28 29 buildInputs = [ 30 pytest 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 description = "Plugin for accessing test session metadata"; 39 homepage = "https://github.com/pytest-dev/pytest-metadata"; 40 license = licenses.mpl20; 41 maintainers = with maintainers; [ mpoquet ]; 42 }; 43}