From e6c6acdd073376ae9e1fc6dd9b16f3a7323f7acc Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 3 Apr 2025 17:12:42 +0200 Subject: [PATCH] python3Packages.semgrep: don't use pythonPackages for dependencies --- .../python-modules/semgrep/default.nix | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/pkgs/development/python-modules/semgrep/default.nix b/pkgs/development/python-modules/semgrep/default.nix index 52b9d08a56bf..91abd5bea075 100644 --- a/pkgs/development/python-modules/semgrep/default.nix +++ b/pkgs/development/python-modules/semgrep/default.nix @@ -4,7 +4,6 @@ fetchFromGitHub, semgrep-core, buildPythonPackage, - pythonPackages, pytestCheckHook, git, @@ -12,27 +11,32 @@ # python packages attrs, boltons, - colorama, click, click-option-group, + colorama, + defusedxml, + flaky, glom, + jsonschema, + opentelemetry-api, + opentelemetry-exporter-otlp-proto-http, + opentelemetry-instrumentation-requests, + opentelemetry-sdk, + packaging, + peewee, + pytest-freezegun, + pytest-mock, + pytest-snapshot, + python-lsp-jsonrpc, requests, rich, ruamel-yaml, - tqdm, - packaging, - jsonschema, - wcmatch, - peewee, - defusedxml, - urllib3, - typing-extensions, - python-lsp-jsonrpc, tomli, - opentelemetry-api, - opentelemetry-sdk, - opentelemetry-exporter-otlp-proto-http, - opentelemetry-instrumentation-requests, + tqdm, + types-freezegun, + typing-extensions, + urllib3, + wcmatch, }: # testing locally post build: @@ -106,18 +110,15 @@ buildPythonPackage rec { doCheck = true; - nativeCheckInputs = - [ - git - pytestCheckHook - ] - ++ (with pythonPackages; [ - flaky - pytest-snapshot - pytest-mock - pytest-freezegun - types-freezegun - ]); + nativeCheckInputs = [ + git + pytestCheckHook + flaky + pytest-snapshot + pytest-mock + pytest-freezegun + types-freezegun + ]; disabledTestPaths = [ "tests/default/e2e"