python3Packages.pytest-memray: init at 1.8.0

This commit is contained in:
Sandro Jäckel 2026-06-21 21:20:46 +02:00
commit c057afbc4d
No known key found for this signature in database
GPG key ID: 236B6291555E8401
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,56 @@
{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
flaky,
hatchling,
hatch-vcs,
memray,
pytest,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "pytest-memray";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bloomberg";
repo = "pytest-memray";
tag = "v${finalAttrs.version}";
hash = "sha256-73Lyy14t2Hcqo0aTlWbGMzaxJ73bKjzc4BFE/jPG99I=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [ memray ];
buildInputs = [ pytest ];
nativeCheckInputs = [
anyio
flaky
pytest-xdist
pytestCheckHook
];
enabledTestPaths = [
# don't run the demo tests
"tests"
];
pythonImportsCheck = [ "pytest_memray" ];
meta = {
description = "Pytest plugin for easy integration of memray memory profiler";
homepage = "https://github.com/bloomberg/pytest-memray";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
})

View file

@ -15846,6 +15846,8 @@ self: super: with self; {
pytest-md-report = callPackage ../development/python-modules/pytest-md-report { };
pytest-memray = callPackage ../development/python-modules/pytest-memray { };
pytest-metadata = callPackage ../development/python-modules/pytest-metadata { };
pytest-mock = callPackage ../development/python-modules/pytest-mock { };