Merge master into staging-next
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "google-api-python-client";
|
||||
version = "1.10.0";
|
||||
version = "1.10.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01zzlr21rgl1skl7ayppp0qwn6s883i50xcvxs8jxzr4c5zz097s";
|
||||
sha256 = "0v4yzrmrp1l3nlkw9ibllgblwy8y45anzfkkky2vghkl6w8411xa";
|
||||
};
|
||||
|
||||
# No tests included in archive
|
||||
|
||||
37
pkgs/development/python-modules/jupyterlab-git/default.nix
Normal file
37
pkgs/development/python-modules/jupyterlab-git/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, notebook
|
||||
, nbdime
|
||||
, git
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyterlab_git";
|
||||
version = "0.20.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qs3wrcils07xlz698xr7giqf9v63n2qb338mlh7wql93rmjg45i";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ notebook nbdime git ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "jupyterlab_git" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Jupyter lab extension for version control with Git.";
|
||||
license = with licenses; [ bsd3 ];
|
||||
homepage = "https://github.com/jupyterlab/jupyterlab-git";
|
||||
maintainers = with maintainers; [ chiroptical ];
|
||||
};
|
||||
}
|
||||
59
pkgs/development/python-modules/pipx/default.nix
Normal file
59
pkgs/development/python-modules/pipx/default.nix
Normal file
@@ -0,0 +1,59 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, userpath
|
||||
, argcomplete
|
||||
, packaging
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pipx";
|
||||
version = "0.15.5.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
# no tests in the pypi tarball, so we directly fetch from github
|
||||
src = fetchFromGitHub {
|
||||
owner = "pipxproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13z032i8r9f6d09hssvyjpxjacb4wgms5bh2i37da2ili9bh72m6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ userpath argcomplete packaging ];
|
||||
|
||||
# avoid inconclusive venv assertion, see https://github.com/pipxproject/pipx/pull/477
|
||||
# remove after PR is merged
|
||||
postPatch = ''
|
||||
substituteInPlace tests/helpers.py \
|
||||
--replace 'assert getattr(sys, "base_prefix", sys.prefix) != sys.prefix, "Tests require venv"' ""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
# disable tests, which require internet connection
|
||||
disabledTests = [
|
||||
"install"
|
||||
"inject"
|
||||
"ensure_null_pythonpath"
|
||||
"missing_interpreter"
|
||||
"cache"
|
||||
"internet"
|
||||
"runpip"
|
||||
"upgrade"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Install and Run Python Applications in Isolated Environments";
|
||||
homepage = "https://github.com/pipxproject/pipx";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ yevhenshymotiuk ];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, debugger
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, Mako
|
||||
, makeWrapper
|
||||
, packaging
|
||||
, pysocks
|
||||
, pygments
|
||||
@@ -58,10 +60,15 @@ buildPythonPackage rec {
|
||||
|
||||
doCheck = false; # no setuptools tests for the package
|
||||
|
||||
postFixup = ''
|
||||
mkdir -p "$out/bin"
|
||||
makeWrapper "${debugger}/bin/${stdenv.lib.strings.getName debugger}" "$out/bin/pwntools-gdb"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://pwntools.com";
|
||||
description = "CTF framework and exploit development library";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bennofs kristoff3r ];
|
||||
maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user