python312Packages.pytest-codspeed: init at 3.0.0
Pytest plugin to create CodSpeed benchmarks https://github.com/CodSpeedHQ/pytest-codspeed
This commit is contained in:
parent
9ef587a977
commit
b247f03fcd
65
pkgs/development/python-modules/pytest-codspeed/default.nix
Normal file
65
pkgs/development/python-modules/pytest-codspeed/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -12640,6 +12640,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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user