mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
python310Packages.pyjsparser: init at 2.7.1
This commit is contained in:
parent
1cd88b09ec
commit
f83576d77e
36
pkgs/development/python-modules/pyjsparser/default.nix
Normal file
36
pkgs/development/python-modules/pyjsparser/default.nix
Normal 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
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user