about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/js2py/default.nix
blob: e0769f4ffa1919bbe2935f5f26525c92c7ebbc44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, fetchPypi
, buildPythonPackage
, tzlocal
, six
, pyjsparser
}:

buildPythonPackage rec {
  pname = "js2py";
  version = "0.74";
  format = "setuptools";

  src = fetchPypi {
    pname = "Js2Py";
    inherit version;
    hash = "sha256-OfOmqoRpGA77o8hncnHfJ8MTMv0bRx3xryr1i4e4ly8=";
  };

  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 ];
  };
}