mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge master into staging-next
This commit is contained in:
23
pkgs/development/python-modules/localimport/default.nix
Normal file
23
pkgs/development/python-modules/localimport/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
47
pkgs/development/python-modules/nodepy-runtime/default.nix
Normal file
47
pkgs/development/python-modules/nodepy-runtime/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,25 +1,53 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, importlib-resources, pytest, xvfb_run }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, importlib-resources
|
||||
, pyqtwebengine
|
||||
, pytest
|
||||
, pythonOlder
|
||||
, qt5
|
||||
, xvfb_run
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pywebview";
|
||||
version = "3.3.1";
|
||||
version = "3.4";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "r0x0r";
|
||||
repo = "pywebview";
|
||||
rev = version;
|
||||
sha256 = "015z7n0hdgkzn0p7aw1xsv6lwc260p8q67jx0zyd1zghnwyj8k79";
|
||||
sha256 = "sha256-3JHwtw8oReolEl4k8cdt7GCVGNkfWWJN6EnZYHxzDO8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ importlib-resources ];
|
||||
nativeBuildInputs = [
|
||||
qt5.wrapQtAppsHook
|
||||
];
|
||||
|
||||
checkInputs = [ pytest xvfb_run ];
|
||||
propagatedBuildInputs = [
|
||||
pyqtwebengine
|
||||
] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
xvfb_run
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
# Cannot create directory /homeless-shelter/.... Error: FILE_ERROR_ACCESS_DENIED
|
||||
export HOME=$TMPDIR
|
||||
# QStandardPaths: XDG_RUNTIME_DIR not set
|
||||
export XDG_RUNTIME_DIR=$HOME/xdg-runtime-dir
|
||||
|
||||
pushd tests
|
||||
substituteInPlace run.sh \
|
||||
--replace "PYTHONPATH=.." "PYTHONPATH=$PYTHONPATH" \
|
||||
--replace "pywebviewtest test_js_api.py::test_concurrent ''${PYTEST_OPTIONS}" "# skip flaky test_js_api.py::test_concurrent"
|
||||
|
||||
patchShebangs run.sh
|
||||
wrapQtApp run.sh
|
||||
|
||||
xvfb-run -s '-screen 0 800x600x24' ./run.sh
|
||||
popd
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user