python312Packages.pytest-codspeed: init at 3.0.0 (#359443)

This commit is contained in:
Fabian Affolter 2024-11-28 08:50:00 +01:00 committed by GitHub
commit fd4a692661
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
cffi,
fetchFromGitHub,
filelock,
hatchling,
importlib-metadata,
pytest-benchmark,
pytest-cov-stub,
pytest-xdist,
pytest,
pytestCheckHook,
rich,
semver,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-codspeed";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CodSpeedHQ";
repo = "pytest-codspeed";
rev = "refs/tags/v${version}";
hash = "sha256-06U7S0hRb0J4hO48DaKMQk8Uzl2rUi1thQ4lGorfqpU=";
};
build-system = [ hatchling ];
buildInput = [ pytest ];
dependencies = [
cffi
filelock
importlib-metadata
rich
setuptools
];
optional-dependencies = {
compat = [
pytest-benchmark
pytest-xdist
];
};
nativeCheckInputs = [
semver
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "pytest_codspeed" ];
meta = {
description = "Pytest plugin to create CodSpeed benchmarks";
homepage = "https://github.com/CodSpeedHQ/pytest-codspeed";
changelog = "https://github.com/CodSpeedHQ/pytest-codspeed/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -12657,6 +12657,8 @@ self: super: with self; {
pytest-click = callPackage ../development/python-modules/pytest-click { };
pytest-codspeed = callPackage ../development/python-modules/pytest-codspeed { };
pytest-console-scripts = callPackage ../development/python-modules/pytest-console-scripts { };
pytest-cov = callPackage ../development/python-modules/pytest-cov { };