mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
b90efe7088
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Suggested-by: Joachim Ernst <mail-maintainer@0x4A6F.dev>
40 lines
707 B
Nix
40 lines
707 B
Nix
{ 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 ];
|
|
};
|
|
}
|
|
|
|
|
|
|