1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #117856 from AndersonTorres/new-nodepy

nodepy-runtime: init at 1.7.3; pythonPackages.localimport: init at 1.7.3
This commit is contained in:
Anderson Torres 2021-04-07 23:41:07 -03:00 committed by GitHub
commit 6188b599c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "localimport";
version = "1.7.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-p7ACOzJRwH9hICMcxtVt/r+twEoFsDxPKGuarFnFIbo=";
};
pythonImportsCheck = [ "localimport" ];
meta = with lib; {
homepage = "https://github.com/NiklasRosenstein/py-localimport";
description = "Isolated import of Python modules";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
};
}

View file

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, localimport
, pathlib2
, six
}:
buildPythonPackage rec {
pname = "nodepy-runtime";
version = "2.1.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-6tSsD76EpCZxkdulv1BcUZtIXGWLG6PuII25J8STygE=";
};
propagatedBuildInputs = [
localimport
pathlib2
six
];
pythonImportsCheck = [
"nodepy"
];
meta = with lib; {
homepage = "https://github.com/nodepy/nodepy";
description = "Runtime for Python inspired by Node.JS";
longDescription = ''
Node.py is a Python runtime and package manager compatible with CPython
2.7 and 3.3 3.6. It provides a separate import mechanism for modules
inspired by Node.js, bringing dependency management and ease of deployment
for Python applications up to par with other languages without virtual
environments.
Node.py comes with a built-in package manager that builds on Pip for
standard Python dependencies but also adds the capability to install
packages that are specifically developed for Node.py. To install the
dependencies of the package manager you must specify the [pm] install
extra.
'';
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
};
}

View file

@ -2806,6 +2806,8 @@ in
nix-template = callPackage ../tools/package-management/nix-template { };
nodepy-runtime = with python3.pkgs; toPythonApplication nodepy-runtime;
nixpkgs-pytools = with python3.pkgs; toPythonApplication nixpkgs-pytools;
noteshrink = callPackage ../tools/misc/noteshrink { };

View file

@ -4009,6 +4009,8 @@ in {
lmtpd = callPackage ../development/python-modules/lmtpd { };
localimport = callPackage ../development/python-modules/localimport { };
localzone = callPackage ../development/python-modules/localzone { };
locket = callPackage ../development/python-modules/locket { };
@ -4644,6 +4646,8 @@ in {
nodeenv = callPackage ../development/python-modules/nodeenv { };
nodepy-runtime = callPackage ../development/python-modules/nodepy-runtime { };
node-semver = callPackage ../development/python-modules/node-semver { };
noise = callPackage ../development/python-modules/noise { };