Skip to content

Commit 1838005

Browse files
committed
1 parent ade1713 commit 1838005

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

pkgs/development/python-modules/safety/default.nix

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
dparse,
1212
ruamel-yaml,
1313
jinja2,
14-
levenshtein,
1514
marshmallow,
15+
nltk,
1616
authlib,
1717
typer,
1818
pydantic,
@@ -27,23 +27,17 @@
2727

2828
buildPythonPackage rec {
2929
pname = "safety";
30-
version = "3.3.0";
31-
32-
disabled = pythonOlder "3.8";
33-
30+
version = "3.3.1";
3431
pyproject = true;
3532

3633
src = fetchFromGitHub {
3734
owner = "pyupio";
3835
repo = "safety";
3936
tag = version;
40-
hash = "sha256-K41ytQhOP3RJ83fbd15cRJD9bAQs+wRnDIBC6XR1bOE=";
37+
hash = "sha256-u+ysRpWLHDQdNRBSlYXz80e/MCT4smmv/YX8sfIrn24=";
4138
};
4239

4340
postPatch = ''
44-
substituteInPlace pyproject.toml \
45-
--replace-fail python-levenshtein levenshtein
46-
4741
substituteInPlace safety/safety.py \
4842
--replace-fail "telemetry: bool = True" "telemetry: bool = False"
4943
substituteInPlace safety/util.py \
@@ -59,7 +53,6 @@ buildPythonPackage rec {
5953

6054
pythonRelaxDeps = [
6155
"pydantic"
62-
"safety-schemas"
6356
];
6457

6558
dependencies = [
@@ -70,8 +63,8 @@ buildPythonPackage rec {
7063
dparse
7164
ruamel-yaml
7265
jinja2
73-
levenshtein
7466
marshmallow
67+
nltk
7568
authlib
7669
typer
7770
pydantic

0 commit comments

Comments
 (0)