1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, tzlocal
5, six
6, pyjsparser
7}:
8
9buildPythonPackage rec {
10 pname = "js2py";
11 version = "0.71";
12
13 src = fetchFromGitHub {
14 owner = "PiotrDabkowski";
15 repo = "Js2Py";
16 rev = "5f665f60083a9796ec33861240ce31d6d2b844b6";
17 sha256 = "sha256-1omTV7zkYSQfxhkNgI4gtXTenWt9J1r3VARRHoRsSfc=";
18 };
19
20 propagatedBuildInputs = [
21 pyjsparser
22 six
23 tzlocal
24 ];
25
26 # Test require network connection
27 doCheck = false;
28
29 pythonImportsCheck = [ "js2py" ];
30
31 meta = with lib; {
32 description = "JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python";
33 homepage = "https://github.com/PiotrDabkowski/Js2Py";
34 license = licenses.mit;
35 maintainers = with maintainers; [ onny ];
36 };
37}