depot/third_party/nixpkgs/pkgs/development/python-modules/pluggy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
914 B
Nix

{
buildPythonPackage,
lib,
fetchFromGitHub,
setuptools-scm,
pythonOlder,
importlib-metadata,
callPackage,
}:
buildPythonPackage rec {
pname = "pluggy";
version = "1.4.0";
disabled = pythonOlder "3.8";
pyproject = true;
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pluggy";
rev = "refs/tags/${version}";
hash = "sha256-1XHJwODmpYQkYZvnZck6RrtT4lOeCf8cr1QFx9DCbzw=";
};
nativeBuildInputs = [ setuptools-scm ];
# To prevent infinite recursion with pytest
doCheck = false;
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = {
changelog = "https://github.com/pytest-dev/pluggy/blob/${src.rev}/CHANGELOG.rst";
description = "Plugin and hook calling mechanisms for Python";
homepage = "https://github.com/pytest-dev/pluggy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}