mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python310Packages.js2py: init at 0.71
This commit is contained in:
parent
8377a22472
commit
1cd88b09ec
2 changed files with 39 additions and 0 deletions
37
pkgs/development/python-modules/js2py/default.nix
Normal file
37
pkgs/development/python-modules/js2py/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, tzlocal
|
||||||
|
, six
|
||||||
|
, pyjsparser
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "js2py";
|
||||||
|
version = "0.71";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "PiotrDabkowski";
|
||||||
|
repo = "Js2Py";
|
||||||
|
rev = "5f665f60083a9796ec33861240ce31d6d2b844b6";
|
||||||
|
sha256 = "sha256-1omTV7zkYSQfxhkNgI4gtXTenWt9J1r3VARRHoRsSfc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyjsparser
|
||||||
|
six
|
||||||
|
tzlocal
|
||||||
|
];
|
||||||
|
|
||||||
|
# Test require network connection
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "js2py" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python";
|
||||||
|
homepage = "https://github.com/PiotrDabkowski/Js2Py";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ onny ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4579,6 +4579,8 @@ in {
|
||||||
inherit (pkgs) jq;
|
inherit (pkgs) jq;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
js2py = callPackage ../development/python-modules/js2py { };
|
||||||
|
|
||||||
jsbeautifier = callPackage ../development/python-modules/jsbeautifier { };
|
jsbeautifier = callPackage ../development/python-modules/jsbeautifier { };
|
||||||
|
|
||||||
jschema-to-python = callPackage ../development/python-modules/jschema-to-python { };
|
jschema-to-python = callPackage ../development/python-modules/jschema-to-python { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue