mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit cc3b636db3)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
40 lines
706 B
Nix
40 lines
706 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, nodejs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pscript";
|
|
version = "0.7.7";
|
|
|
|
# PyPI tarball doesn't include tests directory
|
|
src = fetchFromGitHub {
|
|
owner = "flexxui";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-AhVI+7FiWyH+DfAXnau4aAHJAJtsWEpmnU90ey2z35o=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|
|
|
|
|