diff options
Diffstat (limited to 'pkgs/development/python-modules/pyjsparser/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pyjsparser/default.nix | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/pkgs/development/python-modules/pyjsparser/default.nix b/pkgs/development/python-modules/pyjsparser/default.nix index e7ef79b092ca..0b6eab26b5c3 100644 --- a/pkgs/development/python-modules/pyjsparser/default.nix +++ b/pkgs/development/python-modules/pyjsparser/default.nix @@ -1,37 +1,46 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, js2py +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + js2py, }: -let pyjsparser = buildPythonPackage rec { - pname = "pyjsparser"; - version = "2.7.1"; - format = "setuptools"; +let + pyjsparser = buildPythonPackage rec { + pname = "pyjsparser"; + version = "2.7.1"; + format = "setuptools"; - src = fetchFromGitHub { - owner = "PiotrDabkowski"; - repo = pname; - rev = "5465d037b30e334cb0997f2315ec1e451b8ad4c1"; - hash = "sha256-Hqay9/qsjUfe62U7Q79l0Yy01L2Bnj5xNs6427k3Br8="; - }; + src = fetchFromGitHub { + owner = "PiotrDabkowski"; + repo = pname; + rev = "5465d037b30e334cb0997f2315ec1e451b8ad4c1"; + hash = "sha256-Hqay9/qsjUfe62U7Q79l0Yy01L2Bnj5xNs6427k3Br8="; + }; - nativeCheckInputs = [ pytestCheckHook js2py ]; + nativeCheckInputs = [ + pytestCheckHook + js2py + ]; - # escape infinite recursion with js2py - doCheck = false; + # escape infinite recursion with js2py + doCheck = false; - passthru.tests = { - check = pyjsparser.overridePythonAttrs (_: { doCheck = true; }); - }; + passthru.tests = { + check = pyjsparser.overridePythonAttrs (_: { + doCheck = true; + }); + }; - pythonImportsCheck = [ "pyjsparser" ]; + 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 ]; + 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 +in +pyjsparser |
