Files
nixpkgs/pkgs/development/python-modules/pscript/default.nix
Matthias Beyer 5f0ce40d92 python3Packages.pscript: 0.7.6 -> 0.7.7
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit cc3b636db3)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-15 09:38:32 +01:00

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