From c190a9c8080a21a8a9c4fe8516fb248dd2316df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 22 Nov 2024 20:43:46 -0800 Subject: [PATCH] python312Packages.pytest-benchmark: clean up --- .../python-modules/pytest-benchmark/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index 28b427f208f1..e66926d4c5cd 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -3,7 +3,6 @@ aspectlib, buildPythonPackage, elasticsearch, - elastic-transport, fetchFromGitHub, freezegun, git, @@ -26,8 +25,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ionelmc"; - repo = pname; - rev = "v${version}"; + repo = "pytest-benchmark"; + rev = "refs/tags/v${version}"; hash = "sha256-4fD9UfZ6jtY7Gx/PVzd1JNWeQNz+DJ2kQmCku2TgxzI="; }; @@ -41,6 +40,7 @@ buildPythonPackage rec { aspect = [ aspectlib ]; histogram = [ pygal + # FIXME package pygaljs setuptools ]; elasticsearch = [ elasticsearch ]; @@ -49,7 +49,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytest_benchmark" ]; nativeCheckInputs = [ - elastic-transport freezegun git mercurial @@ -77,11 +76,11 @@ buildPythonPackage rec { "test_help" ]; - meta = with lib; { + meta = { changelog = "https://github.com/ionelmc/pytest-benchmark/blob/${src.rev}/CHANGELOG.rst"; description = "Pytest fixture for benchmarking code"; homepage = "https://github.com/ionelmc/pytest-benchmark"; - license = licenses.bsd2; - maintainers = with maintainers; [ dotlambda ]; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ dotlambda ]; }; }