python310Packages.pyjsparser: init at 2.7.1

This commit is contained in:
Jonas Heinrich 2022-08-12 22:25:44 +02:00
parent 1cd88b09ec
commit f83576d77e
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, js2py
}:
let pyjsparser = buildPythonPackage rec {
pname = "pyjsparser";
version = "2.7.1";
src = fetchFromGitHub {
owner = "PiotrDabkowski";
repo = pname;
rev = "5465d037b30e334cb0997f2315ec1e451b8ad4c1";
sha256 = "sha256-Hqay9/qsjUfe62U7Q79l0Yy01L2Bnj5xNs6427k3Br8=";
};
checkInputs = [ pytestCheckHook js2py ];
# escape infinite recursion with js2py
doCheck = false;
passthru.tests = {
check = pyjsparser.overridePythonAttrs (_: { doCheck = true; });
};
pythonImportsCheck = [ "pyjsparser" ];
meta = with lib; {
description = "Fast javascript parser (based on esprima.js)";
homepage = "https://github.com/PiotrDabkowski/pyjsparser";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}; in pyjsparser

View File

@ -7598,6 +7598,8 @@ in {
pyjson5 = callPackage ../development/python-modules/pyjson5 { };
pyjsparser = callPackage ../development/python-modules/pyjsparser { };
pyjwkest = callPackage ../development/python-modules/pyjwkest { };
pyjwt = callPackage ../development/python-modules/pyjwt { };