mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 05:44:13 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
41 lines
909 B
Nix
41 lines
909 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pythonOlder
|
|
, importlib-metadata
|
|
, callPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pluggy";
|
|
version = "1.3.0";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pytest-dev";
|
|
repo = "pluggy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jLasnqmATIOoheGu90Wo1+iTCwslYzNOKckqHIZDJec=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|