python310Packages.js2py: init at 0.71

This commit is contained in:
Jonas Heinrich 2022-07-30 12:48:52 +02:00
parent 8377a22472
commit 1cd88b09ec
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, tzlocal
, six
, pyjsparser
}:
buildPythonPackage rec {
pname = "js2py";
version = "0.71";
src = fetchFromGitHub {
owner = "PiotrDabkowski";
repo = "Js2Py";
rev = "5f665f60083a9796ec33861240ce31d6d2b844b6";
sha256 = "sha256-1omTV7zkYSQfxhkNgI4gtXTenWt9J1r3VARRHoRsSfc=";
};
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 ];
};
}

View File

@ -4579,6 +4579,8 @@ in {
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 { };