Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2019-07-26 14:45:31 +02:00
38 changed files with 460 additions and 168 deletions

View File

@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytest, pytestcov }:
buildPythonPackage rec {
pname = "capturer";
version = "2.4";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-capturer";
rev = version;
sha256 = "07zy264xd0g7pz9sxjqcpwmrck334xcbb7wfss26lmvgdr5nhcb9";
};
propagatedBuildInputs = [ humanfriendly ];
checkPhase = ''
PATH=$PATH:$out/bin pytest .
'';
checkInputs = [ pytest ];
meta = with lib; {
description = "Easily capture stdout/stderr of the current process and subprocesses";
homepage = https://github.com/xolox/python-capturer;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib, buildPythonPackage, fetchFromGitHub, stdenv, isPy3k, fetchpatch, humanfriendly, verboselogs, capturer, pytest, mock, utillinux }:
buildPythonPackage rec {
pname = "coloredlogs";
version = "10.0";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-coloredlogs";
rev = version;
sha256 = "0rdvp4dfvzhx7z7s2jdl3fv7x1hazgpy5gc7bcf05bnbv2iia54a";
};
# patch by risicle
patches = lib.optional (stdenv.isDarwin && isPy3k) (fetchpatch {
name = "darwin-py3-capture-fix.patch";
url = "https://github.com/xolox/python-coloredlogs/pull/74.patch";
sha256 = "0pk7k94iz0gdripw623vzdl4hd83vwhsfzshl8pbvh1n6swi0xx9";
});
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format"
'';
checkInputs = [ pytest mock utillinux ];
propagatedBuildInputs = [ humanfriendly verboselogs capturer ];
meta = with lib; {
description = "Colored stream handler for Python's logging module";
homepage = https://github.com/xolox/python-coloredlogs;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -36,7 +36,7 @@ let
bazelTarget = ":install";
fetchAttrs = {
sha256 = "0f2rlzrlazmgjrsin8vq3jfv431cc8sx8lxsr6x4wgd4jx5d1zzy";
sha256 = "141k2caj5hlk31gnqryp6w2mzyz4i5s1rf8f3qr18isxy235k3w6";
};
bazelFlags = [

View File

@@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, coloredlogs, property-manager, fasteners, pytest, mock, virtualenv }:
buildPythonPackage rec {
pname = "executor";
version = "21.3";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-executor";
rev = version;
sha256 = "0rc14vjx3d6irfaw0pczzw1pn0xjl7xikv32hc1fvxv2ibnldv5d";
};
propagatedBuildInputs = [ coloredlogs property-manager fasteners ];
checkInputs = [ pytest mock virtualenv ];
# ignore impure tests
checkPhase = ''
pytest . -k "not option and not retry \
and not remote and not ssh \
and not foreach and not local_context"
'';
meta = with lib; {
description = "Programmer friendly subprocess wrapper";
homepage = https://github.com/xolox/python-executor;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "google-api-python-client";
version = "1.7.9";
version = "1.7.10";
src = fetchPypi {
inherit pname version;
sha256 = "1v551xaavqff085gplinnnrz2sk6sikmm7j47gi0wf34hpba1384";
sha256 = "1mlx5dvkh6rjkvkd91flyhrmji2kw9rlr05n8n4wccv2np3sam9f";
};
# No tests included in archive

View File

@@ -5,13 +5,17 @@
buildPythonPackage rec {
pname = "jsondiff";
version = "1.1.2";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "7e18138aecaa4a8f3b7ac7525b8466234e6378dd6cae702b982c9ed851d2ae21";
sha256 = "00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l";
};
postPatch = ''
sed -e "/'jsondiff=jsondiff.cli:main_deprecated',/d" -i setup.py
'';
# No tests
doCheck = false;
@@ -20,5 +24,4 @@ buildPythonPackage rec {
homepage = https://github.com/ZoomerAnalytics/jsondiff;
license = lib.licenses.mit;
};
}
}

View File

@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub, cython, mkl, nose, six }:
buildPythonPackage rec {
pname = "mkl-service";
version = "2.1.0";
src = fetchFromGitHub {
owner = "IntelPython";
repo = "mkl-service";
rev = "v${version}";
sha256 = "1bnpgx629rxqf0yhn0jn68ypj3dqv6njc3981j1g8j8rsm5lycrn";
};
MKLROOT = mkl;
checkInputs = [ nose ];
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ mkl six ];
meta = with lib; {
description = "Python hooks for Intel(R) Math Kernel Library runtime control settings";
homepage = "https://github.com/IntelPython/mkl-service";
license = licenses.bsd3;
maintainers = with maintainers; [ bhipple ];
};
}

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "naturalsort";
version = "1.5.1";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-naturalsort";
rev = version;
sha256 = "0w43vlddzh97hffnvxp2zkrns9qyirx5g8ijxnxkbx1c4b4gq5ih";
};
meta = with lib; {
description = "Simple natural order sorting API for Python that just works";
homepage = https://github.com/xolox/python-naturalsort;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, verboselogs, coloredlogs, pytest, pytestcov }:
buildPythonPackage rec {
pname = "property-manager";
version = "2.3.1";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-property-manager";
rev = version;
sha256 = "0s4nwipxd8c2vp4rd8mxrj8wbycniz5ki5n177d0dbrnll5amcz0";
};
propagatedBuildInputs = [ coloredlogs humanfriendly verboselogs ];
checkInputs = [ pytest pytestcov ];
meta = with lib; {
description = "Useful property variants for Python programming";
homepage = https://github.com/xolox/python-property-manager;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchFromGitHub, executor, naturalsort }:
buildPythonPackage rec {
pname = "update-dotdee";
version = "5.0";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-update-dotdee";
rev = version;
sha256 = "1h3m593nwzx6vwa24k0wizb7la49yhqxwn73ipclxgxxi4dfdj01";
};
propagatedBuildInputs = [ executor naturalsort ];
meta = with lib; {
description = "Generic modularized configuration file manager";
homepage = https://github.com/xolox/python-update-dotdee;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock }:
buildPythonPackage rec {
pname = "verboselogs";
version = "1.7";
src = fetchFromGitHub {
owner = "xolox";
repo = "python-verboselogs";
rev = version;
sha256 = "10jzm8pkl49as4y2zyiidmfqqj5zmqg3p73jvx4lfxi0gmp1vhl5";
};
# do not run pylint plugin test, as astroid is a old unsupported version
checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_pylint_plugin"
'';
checkInputs = [ pytest mock ];
meta = with lib; {
description = "Verbose logging for Python's logging module";
homepage = https://github.com/xolox/python-verboselogs;
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}