2021-12-19 20:33:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-12-21 18:33:39 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, nodejs
|
2021-12-19 20:33:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2021-12-21 18:33:39 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
nodejs
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# do not execute legacy tests
|
|
|
|
rm -rf pscript_legacy
|
|
|
|
'';
|
2021-12-19 20:33:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python to JavaScript compiler";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
homepage = "https://pscript.readthedocs.io";
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|