mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
Merge pull request #333525 from dotlambda/python3Packages.safety-schemas
python312Packages.safety: 3.2.4 -> 3.2.5
This commit is contained in:
commit
cc0f717738
@ -12,22 +12,20 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "safety-schemas";
|
||||
version = "0.0.2";
|
||||
version = "0.0.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "safety_schemas";
|
||||
inherit version;
|
||||
hash = "sha256-fRsEDsBkgPBc/2tF6nqT4JyJQt+GT7DQHd62fDI8+ow=";
|
||||
hash = "sha256-s5VU+cAQ5PEffJ5Xc+sx0slsFk96WVwnOpiwdND7mPQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
build-system = [ hatchling ];
|
||||
|
||||
pythonRelaxDeps = [ "dparse" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
dparse
|
||||
packaging
|
||||
pydantic
|
||||
|
@ -2,7 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
click,
|
||||
urllib3,
|
||||
@ -13,34 +13,37 @@
|
||||
jinja2,
|
||||
marshmallow,
|
||||
authlib,
|
||||
jwt,
|
||||
rich,
|
||||
typer,
|
||||
pydantic,
|
||||
safety-schemas,
|
||||
typing-extensions,
|
||||
filelock,
|
||||
psutil,
|
||||
git,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "safety";
|
||||
version = "3.2.4";
|
||||
version = "3.2.5";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-usAgIBbXNqIRgFeWSg45g/og/yVj/RA8rD86we0/6hE=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyupio";
|
||||
repo = "safety";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-vLibQfSwxZF48KL/vfkCOUi2qH5QGMySbdakLQNP+Ug=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace safety/safety.py \
|
||||
--replace-fail "telemetry=True" "telemetry=False"
|
||||
--replace-fail "telemetry: bool = True" "telemetry: bool = False"
|
||||
substituteInPlace safety/util.py \
|
||||
--replace-fail "telemetry = True" "telemetry = False"
|
||||
--replace-fail "telemetry: bool = True" "telemetry: bool = False"
|
||||
substituteInPlace safety/cli.py \
|
||||
--replace-fail "disable-optional-telemetry', default=False" \
|
||||
"disable-optional-telemetry', default=True"
|
||||
@ -66,24 +69,26 @@ buildPythonPackage rec {
|
||||
jinja2
|
||||
marshmallow
|
||||
authlib
|
||||
jwt
|
||||
rich
|
||||
typer
|
||||
pydantic
|
||||
safety-schemas
|
||||
typing-extensions
|
||||
filelock
|
||||
psutil
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
git
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Disable tests depending on online services
|
||||
disabledTests = [
|
||||
"test_announcements_if_is_not_tty"
|
||||
"test_check_live"
|
||||
"test_check_live_cached"
|
||||
"test_debug_flag"
|
||||
"test_get_packages_licenses_without_api_key"
|
||||
"test_validate_with_policy_file_using_invalid_keyword"
|
||||
"test_validate_with_basic_policy_file"
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user