1{ buildPythonPackage 2, lib 3, fetchFromGitHub 4, setuptools-scm 5, pythonOlder 6, importlib-metadata 7, callPackage 8}: 9 10buildPythonPackage rec { 11 pname = "pluggy"; 12 version = "1.3.0"; 13 14 disabled = pythonOlder "3.8"; 15 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "pytest-dev"; 20 repo = "pluggy"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-jLasnqmATIOoheGu90Wo1+iTCwslYzNOKckqHIZDJec="; 23 }; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 28 29 # To prevent infinite recursion with pytest 30 doCheck = false; 31 passthru.tests = { 32 pytest = callPackage ./tests.nix { }; 33 }; 34 35 meta = { 36 changelog = "https://github.com/pytest-dev/pluggy/blob/${src.rev}/CHANGELOG.rst"; 37 description = "Plugin and hook calling mechanisms for Python"; 38 homepage = "https://github.com/pytest-dev/pluggy"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}