-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
pip-audit: init at 2.0.0 #163588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
pip-audit: init at 2.0.0 #163588
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3c74667
python3Packages.cachecontrol: enable filecache
fabaff de6f14d
python3Packages.pretend: enable tests
fabaff b897629
python3Packages.pip-api: init at 0.0.28
fabaff 86e49c7
pip-audit: init at 2.0.0
fabaff d759e89
python310Packages.pip-api: 0.0.28 -> 0.0.29
fabaff 1d17d14
pip-audit: 2.0.0 -> 2.2.1
fabaff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { lib | ||
| , buildPythonPackage | ||
| , fetchPypi | ||
| , pip | ||
| , pretend | ||
| , pytestCheckHook | ||
| , pythonOlder | ||
| , virtualenv | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "pip-api"; | ||
| version = "0.0.29"; | ||
| format = "setuptools"; | ||
|
|
||
| disabled = pythonOlder "3.7"; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| hash = "sha256-9wFYTrHD4BAhyEb4nWKauTc7ZiTwYmdXd0rVT8TClXE="; | ||
| }; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| pip | ||
| ]; | ||
|
|
||
| checkInputs = [ | ||
| pretend | ||
| pytestCheckHook | ||
| virtualenv | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "pip_api" | ||
| ]; | ||
|
|
||
| disabledTests = [ | ||
| "test_hash" | ||
| "test_hash_default_algorithm_is_256" | ||
| "test_installed_distributions" | ||
| "test_invoke_install" | ||
| "test_invoke_uninstall" | ||
| "test_isolation" | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Importable pip API"; | ||
| homepage = "https://github.com/di/pip-api"; | ||
| license = with licenses; [ mit ]; | ||
| maintainers = with maintainers; [ fab ]; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,36 @@ | ||
| { lib, buildPythonPackage, fetchPypi }: | ||
| { lib | ||
| , buildPythonPackage | ||
| , fetchFromGitHub | ||
| , pytestCheckHook | ||
| , pythonOlder | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "pretend"; | ||
| version = "1.0.9"; | ||
| format = "setuptools"; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| sha256 = "c90eb810cde8ebb06dafcb8796f9a95228ce796531bc806e794c2f4649aa1b10"; | ||
| disabled = pythonOlder "3.7"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "alex"; | ||
| repo = pname; | ||
| rev = "v${version}"; | ||
| hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ="; | ||
| }; | ||
|
|
||
| # No tests in archive | ||
| doCheck = false; | ||
| checkInputs = [ | ||
| pytestCheckHook | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "pretend" | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Module for stubbing"; | ||
| homepage = "https://github.com/alex/pretend"; | ||
| license = licenses.bsd3; | ||
| maintainers = with maintainers; [ ]; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| { lib | ||
| , fetchFromGitHub | ||
| , fetchpatch | ||
| , python3 | ||
| }: | ||
|
|
||
| let | ||
| py = python3.override { | ||
| packageOverrides = self: super: { | ||
|
|
||
| # ansible doesn't support resolvelib > 0.6.0 and can't have an override | ||
| resolvelib = super.resolvelib.overridePythonAttrs (oldAttrs: rec { | ||
| version = "0.8.1"; | ||
| src = fetchFromGitHub { | ||
SuperSandro2000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| owner = "sarugaku"; | ||
| repo = "resolvelib"; | ||
| rev = version; | ||
| sha256 = "1qpd0gg9yl0kbamlgjs9pkxd39kx511kbc92civ77v0ka5sw8ca0"; | ||
| }; | ||
| }); | ||
| }; | ||
| }; | ||
| in | ||
| with py.pkgs; | ||
fabaff marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| buildPythonApplication rec { | ||
| pname = "pip-audit"; | ||
| version = "2.2.1"; | ||
| format = "setuptools"; | ||
|
|
||
| src = fetchFromGitHub { | ||
SuperSandro2000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| owner = "trailofbits"; | ||
| repo = pname; | ||
| rev = "v${version}"; | ||
| hash = "sha256-ji61783imVlvoBaDMTxQwbf1L1G4lJbOFZ1FjcNOT/8="; | ||
| }; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| cachecontrol | ||
| cyclonedx-python-lib | ||
| html5lib | ||
| packaging | ||
| pip-api | ||
| progress | ||
| resolvelib | ||
| ]; | ||
|
|
||
| checkInputs = [ | ||
| pretend | ||
| pytestCheckHook | ||
| ]; | ||
|
|
||
| pythonImportsCheck = [ | ||
| "pip_audit" | ||
| ]; | ||
|
|
||
| preCheck = '' | ||
| export HOME=$(mktemp -d); | ||
| ''; | ||
|
|
||
| disabledTestPaths = [ | ||
| # Tests require network access | ||
| "test/dependency_source/test_requirement.py" | ||
| "test/dependency_source/test_resolvelib.py" | ||
| "test/service/test_pypi.py" | ||
| "test/service/test_osv.py" | ||
| ]; | ||
|
|
||
| disabledTests = [ | ||
| # Tests requrire network access | ||
| "test_get_pip_cache" | ||
| "test_virtual_env" | ||
| "test_pyproject_source" | ||
| "test_pyproject_source_duplicate_deps" | ||
| ]; | ||
|
|
||
| meta = with lib; { | ||
| description = "Tool for scanning Python environments for known vulnerabilities"; | ||
| homepage = "https://github.com/trailofbits/pip-audit"; | ||
| license = with licenses; [ asl20 ]; | ||
| maintainers = with maintainers; [ fab ]; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.