2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchPypi
|
2022-08-21 13:32:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, tzlocal
|
|
|
|
, six
|
|
|
|
, pyjsparser
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "js2py";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.74";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Js2Py";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-OfOmqoRpGA77o8hncnHfJ8MTMv0bRx3xryr1i4e4ly8=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|