python3Packages.js2py: remove (#349550)
This commit is contained in:
commit
a6de1790f9
@ -30,25 +30,23 @@ python3.pkgs.buildPythonApplication rec {
|
||||
sed -i -E 's/([A-z0-9]*)~=[^;]*(.*)/\1\2/' setup.cfg
|
||||
'';
|
||||
|
||||
dependencies =
|
||||
with python3.pkgs;
|
||||
[
|
||||
bitmath
|
||||
certifi
|
||||
cheroot
|
||||
cryptography
|
||||
filetype
|
||||
flask
|
||||
flask-babel
|
||||
flask-caching
|
||||
flask-compress
|
||||
flask-session
|
||||
flask-themes2
|
||||
pycurl
|
||||
semver
|
||||
setuptools
|
||||
]
|
||||
++ (if pythonOlder "3.12" then [ js2py ] else [ dukpy ]);
|
||||
dependencies = with python3.pkgs; [
|
||||
bitmath
|
||||
certifi
|
||||
cheroot
|
||||
cryptography
|
||||
dukpy
|
||||
filetype
|
||||
flask
|
||||
flask-babel
|
||||
flask-caching
|
||||
flask-compress
|
||||
flask-session
|
||||
flask-themes2
|
||||
pycurl
|
||||
semver
|
||||
setuptools
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
plugins = with python3.pkgs; [
|
||||
|
@ -7,7 +7,6 @@
|
||||
django,
|
||||
packaging,
|
||||
nodejs,
|
||||
js2py,
|
||||
six,
|
||||
}:
|
||||
|
||||
@ -25,9 +24,11 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ django ] ++ lib.optionals (pythonAtLeast "3.7") [ packaging ];
|
||||
|
||||
# Js2py is needed for tests but it's unmaintained and insecure
|
||||
doCheck = false;
|
||||
|
||||
nativeCheckInputs = [
|
||||
nodejs
|
||||
js2py
|
||||
six
|
||||
];
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
pythonAtLeast,
|
||||
setuptools,
|
||||
tzlocal,
|
||||
six,
|
||||
pyjsparser,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "js2py";
|
||||
version = "0.74";
|
||||
pyproject = true;
|
||||
|
||||
# broken with Python 3.12
|
||||
# https://github.com/PiotrDabkowski/Js2Py/issues/317
|
||||
disabled = pythonAtLeast "3.12";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Js2Py";
|
||||
inherit version;
|
||||
hash = "sha256-OfOmqoRpGA77o8hncnHfJ8MTMv0bRx3xryr1i4e4ly8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyjsparser
|
||||
six
|
||||
tzlocal
|
||||
];
|
||||
|
||||
# Test require network connection
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "js2py" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python";
|
||||
homepage = "https://github.com/PiotrDabkowski/Js2Py";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
knownVulnerabilities = [ "CVE-2024-28397" ];
|
||||
};
|
||||
}
|
@ -22,7 +22,6 @@
|
||||
grpcio,
|
||||
ipython,
|
||||
ipywidgets,
|
||||
js2py,
|
||||
matplotlib,
|
||||
numpy,
|
||||
pandas,
|
||||
@ -69,7 +68,6 @@ buildPythonPackage rec {
|
||||
grpcio
|
||||
ipython
|
||||
ipywidgets
|
||||
js2py
|
||||
matplotlib
|
||||
numpy
|
||||
pandas
|
||||
@ -101,6 +99,9 @@ buildPythonPackage rec {
|
||||
"src/tests/test_plot.py"
|
||||
"src/tests/test_magic.py"
|
||||
"src/tests/test_magic_plot.py"
|
||||
|
||||
# require js2py (which is unmaintained and insecure)
|
||||
"src/tests/test_widget.py"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||
"lark.grammars"
|
||||
];
|
||||
|
||||
# Js2py is needed for tests but it's marked as insecure
|
||||
# Js2py is needed for tests but it's unmaintained and insecure
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -3,7 +3,6 @@
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
pytestCheckHook,
|
||||
js2py,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -21,18 +20,11 @@ let
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
js2py
|
||||
];
|
||||
|
||||
# escape infinite recursion with js2py
|
||||
# js2py is needed for tests but it's unmaintained and insecure
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = {
|
||||
check = pyjsparser.overridePythonAttrs (_: {
|
||||
doCheck = true;
|
||||
});
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "pyjsparser" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -287,6 +287,7 @@ mapAliases ({
|
||||
jinja2_pluralize = jinja2-pluralize; # added 2023-11-01
|
||||
jinja2_time = jinja2-time; # added 2022-11-07
|
||||
JPype1 = jpype1; # added 2023-02-19
|
||||
js2py = throw "js2py has been removed, as it is unmaintained and insecure"; # added 2024-10-17
|
||||
jsonpath_rw = jsonpath-rw; # added 2024-01-06
|
||||
jsonschema_3 = throw "jsonschema 3 is neither the latest version nor needed inside nixpkgs anymore"; # added 2023-06-28
|
||||
jupyter_client = jupyter-client; # added 2021-10-15
|
||||
|
@ -6474,8 +6474,6 @@ self: super: with self; {
|
||||
inherit (pkgs) jq;
|
||||
};
|
||||
|
||||
js2py = callPackage ../development/python-modules/js2py { };
|
||||
|
||||
jsbeautifier = callPackage ../development/python-modules/jsbeautifier { };
|
||||
|
||||
jschema-to-python = callPackage ../development/python-modules/jschema-to-python { };
|
||||
|
Loading…
Reference in New Issue
Block a user