Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions pkgs/by-name/pi/pip-audit/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
python3,
}:

python3.pkgs.buildPythonApplication rec {
let
py = python3.override {
packageOverrides = self: super: {

# Requires cyclonedx-python-lib <10.0.0
Copy link
Member

@dotlambda dotlambda Sep 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use pythonRelaxDeps? See also #421201

cyclonedx-python-lib = super.cyclonedx-python-lib.overridePythonAttrs (oldAttrs: rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cyclonedx-python-lib = super.cyclonedx-python-lib.overridePythonAttrs (oldAttrs: rec {
cyclonedx-python-lib = super.cyclonedx-python-lib.overridePythonAttrs rec {

version = "9.1.0";
src = fetchFromGitHub {
owner = "CycloneDX";
repo = "cyclonedx-python-lib";
tag = "v${version}";
hash = "sha256-XnRyE+C29W+rKrJop15jMNAXfAOdty877fKluhmEqIc=";
};
});
};
};
in

py.pkgs.buildPythonApplication rec {
pname = "pip-audit";
version = "2.9.0";
pyproject = true;
Expand All @@ -16,12 +34,10 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-j8ZKqE7PEwaCTUNnJunqM0A2eyuWfx8zG5i3nmZERow=";
};

pythonRelaxDeps = [ "cyclonedx-python-lib" ];

build-system = with python3.pkgs; [ flit-core ];
build-system = with py.pkgs; [ flit-core ];

dependencies =
with python3.pkgs;
with py.pkgs;
[
cachecontrol
cyclonedx-python-lib
Expand All @@ -35,7 +51,7 @@ python3.pkgs.buildPythonApplication rec {
]
++ cachecontrol.optional-dependencies.filecache;

nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = with py.pkgs; [
pretend
pytestCheckHook
];
Expand Down
Loading