summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/pscript/default.nix
blob: fae2c8a4281851f6496edff47e0939dd614c684c (plain)
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
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, nodejs
}:

buildPythonPackage rec {
  pname = "pscript";
  version = "0.7.6";

  # PyPI tarball doesn't include tests directory
  src = fetchFromGitHub {
    owner = "flexxui";
    repo = pname;
    rev = "v${version}";
    sha256 = "169px5n4jjnpdn9y86f28qwd95bwf1q1rz0a1h3lb5nn5c6ym8c4";
  };

  checkInputs = [
    pytestCheckHook
    nodejs
  ];

  preCheck = ''
    # do not execute legacy tests
    rm -rf pscript_legacy
  '';

  meta = with lib; {
    description = "Python to JavaScript compiler";
    license = licenses.bsd2;
    homepage = "https://pscript.readthedocs.io";
    maintainers = [ maintainers.matthiasbeyer ];
  };
}