Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-04-09 16:38:35 +02:00
288 changed files with 10485 additions and 4093 deletions

View File

@@ -20,11 +20,11 @@
buildPythonPackage rec {
pname = "APScheduler";
version = "3.5.3";
version = "3.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "6599bc78901ee7e9be85cbd073d9cc155c42d2bc867c5cde4d4d1cc339ebfbeb";
sha256 = "0q22lgp001hkk4z4xs2b2hlix84ka15i576p33fmgp69zn4bhmlg";
};
buildInputs = [

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "IPy";
version = "0.83";
version = "1.00";
src = fetchPypi {
inherit pname version;
sha256 = "61da5a532b159b387176f6eabf11946e7458b6df8fb8b91ff1d345ca7a6edab8";
sha256 = "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg";
};
checkInputs = [ nose ];

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "agate-dbf";
version = "0.2.0";
version = "0.2.1";
propagatedBuildInputs = [ agate dbf dbfread ];
src = fetchPypi {
inherit pname version;
sha256 = "0pkk6m873xpqj77ja6ylmg8v41abpn4bvsqw6mh2hjyd0snw2rh6";
sha256 = "0brprva3vjypb5r9lk6zy10jazp681rxsqxzhz2lr869ir4krj80";
};
meta = with stdenv.lib; {

View File

@@ -3,7 +3,7 @@
buildPythonPackage rec {
pname = "aniso8601";
version = "4.1.0";
version = "6.0.0";
meta = with stdenv.lib; {
description = "Parses ISO 8601 strings.";
@@ -17,6 +17,6 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "1x49k287ky1spv3msc9fwmc7ydyw6rlcr14nslgcmpjfn3pgzh03";
sha256 = "1bylfskk08ahyma25i8w3mcd0kywpxqx6icv5p7m1z0i8srak9mq";
};
}

View File

@@ -13,11 +13,11 @@
buildPythonPackage rec {
pname = "ansible-runner";
version = "1.2.0";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "9c2fc02bd22ac831138bfd2241e1664d7700bbb2c61f96b8b1f2d83ab4ea59a7";
sha256 = "1zys65vq0jqyzdmchaydzsvlf0ysw2y58sapjq6wzc6yw6pdyigz";
};
checkInputs = [ pytest mock ];

View File

@@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, pytest
, mock
, parameterized
, isPy35
}:
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "0.2.1";
# No tests available in PyPI tarball
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "v${version}";
sha256 = "1pbi6572q1nqs2wd7jx9d5vgf3rqdsqlaz4v8fqvl23wfb2c4vpd";
};
# Package is not compatible with Python 3.5
disabled = isPy35;
propagatedBuildInputs = [
six
];
checkInputs = [
pytest
mock
parameterized
];
checkPhase = ''
export PATH=$out/bin:$PATH
pytest tests/functional
'';
meta = with lib; {
homepage = https://github.com/awslabs/aws-lambda-builders;
description = "A tool to compile, build and package AWS Lambda functions";
longDescription = ''
Lambda Builders is a Python library to compile, build and package
AWS Lambda functions for several runtimes & frameworks.
'';
license = licenses.asl20;
maintainers = with maintainers; [ dhkl ];
};
}

View File

@@ -9,11 +9,11 @@
buildPythonPackage rec {
pname = "azure-storage-blob";
version = "1.4.0";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "65ebe2e54460566c2077c6b3773a2a0623eabc7b95602010cb51b84077087fda";
sha256 = "0b15dzy75fml994gdfmaw5qcyij15gvh968mk3hg94d1wxwai1zi";
};
propagatedBuildInputs = [

View File

@@ -3,11 +3,11 @@
buildPythonPackage rec {
pname = "backports.csv";
version = "1.0.6";
version = "1.0.7";
src = fetchPypi {
inherit pname version;
sha256 = "bed884eeb967c8d6f517dfcf672914324180f1e9ceeb0376fde2c4c32fd7008d";
sha256 = "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj";
};
propagatedBuildInputs = [ future ];

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "braintree";
version = "3.51.0";
version = "3.52.0";
src = fetchPypi {
inherit pname version;
sha256 = "1aavalwxcpql416f0n6wxq2h5jpvbx5jq4y4nz2wsppgjbsxylcc";
sha256 = "0p8qmmc3fmjz7i5yjyxx9sxkhfq38kr0mws4dh3k5kxl6an02mp4";
};
propagatedBuildInputs = [ requests ];

View File

@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "chevron";
version = "0.13.1";
# No tests available in the PyPI tarball
src = fetchFromGitHub {
owner = "noahmorrison";
repo = "chevron";
rev = "0.13.1";
sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470";
};
checkPhase = ''
${python.interpreter} test_spec.py
'';
meta = with lib; {
homepage = https://github.com/noahmorrison/chevron;
description = "A python implementation of the mustache templating language";
license = licenses.mit;
maintainers = with maintainers; [ dhkl ];
};
}

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "django-allauth";
version = "0.36.0";
version = "0.38.0";
# no tests on PyPI
src = fetchFromGitHub {
owner = "pennersr";
repo = pname;
rev = version;
sha256 = "1c863cmd521j6cwpyd50jxz5y62fdschrhm15jfqihicyr9imjan";
sha256 = "17ch8lvq47arkgvwz2fdc89lwvgphsnmjs6wwf5g1m50xclljwmq";
};
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];

View File

@@ -1,17 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }:
{ stdenv, buildPythonPackage, fetchFromGitHub, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig
, cython}:
with stdenv.lib;
buildPythonPackage rec {
pname = "grpcio";
version = "1.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "abe825aa49e6239d5edf4e222c44170d2c7f6f4b1fd5286b4756a62d8067e112";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0cilbhk35gv46mk40jl5f3iqa94x14qyxbavpfq0kh0rld82nx4m";
};
nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin darwin.cctools;
nativeBuildInputs = [ cython pkgconfig ]
++ optional stdenv.isDarwin darwin.cctools;
propagatedBuildInputs = [ six protobuf ]
++ lib.optionals (isPy27 || isPy34) [ enum34 ]

View File

@@ -30,7 +30,7 @@ in buildPythonPackage rec {
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else "";
checkInputs = optional isPy27 unittest2;
checkInputs = optional isPy27 unittest2 ++ [ openssh ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ hdf5 cython ]
++ optional mpiSupport mpi;

View File

@@ -7,17 +7,20 @@
buildPythonPackage rec {
pname = "ipdb";
version = "0.8.1";
version = "0.12";
disabled = isPyPy; # setupterm: could not find terminfo database
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1763d1564113f5eb89df77879a8d3213273c4d7ff93dcb37a3070cdf0c34fd7c";
sha256 = "dce2112557edfe759742ca2d0fee35c59c97b0cc7a05398b791079d78f1519ce";
};
propagatedBuildInputs = [ ipython ];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with stdenv.lib; {
homepage = https://github.com/gotcha/ipdb;
description = "IPython-enabled pdb";

View File

@@ -1,18 +1,26 @@
{ lib, fetchPypi, buildPythonApplication, EditorConfig, pytest, six }:
{ lib, fetchPypi, buildPythonApplication, EditorConfig, fetchpatch, pytest, six }:
buildPythonApplication rec {
pname = "jsbeautifier";
version = "1.8.9";
version = "1.9.1";
propagatedBuildInputs = [ six ];
buildInputs = [ EditorConfig pytest ];
propagatedBuildInputs = [ six EditorConfig ];
checkInputs = [ pytest ];
src = fetchPypi {
inherit pname version;
sha256 = "7d02baa9b0459bf9c5407c1b99ad5566de04a3b664b18a58ac64f52832034204";
sha256 = "0q8ld072dkccssagjxyvc9633fb6ynflvz70924phgp3zxmim960";
};
patches = [
(fetchpatch {
url = "https://github.com/beautify-web/js-beautify/commit/78e35a11cbb805fc044241d6465800ee2bd57ebc.patch";
sha256 = "1ah7nshk96yljy37i20v4fga834dix9cdbhkdc3flfm4904n4523";
})
];
patchFlags = [ "-p2" ];
meta = with lib; {
homepage = "http://jsbeautifier.org";
description = "JavaScript unobfuscator and beautifier.";

View File

@@ -2,31 +2,17 @@
buildPythonPackage rec {
pname = "mpi4py";
version = "3.0.0";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "1mzgd26dfv4vwbci8gq77ss9f0x26i9aqzq9b9vs9ndxhlnv0mxl";
sha256 = "0ld8rjmsjr0dklvj2g1gr3ax32sdq0xjxyh0cspknc1i36waajb5";
};
passthru = {
inherit mpi;
};
patches = [
(fetchpatch {
# Disable tests failing with 3.1.x and MPI_THREAD_MULTIPLE (upstream patch)
url = "https://bitbucket.org/mpi4py/mpi4py/commits/c2b6b7e642a182f9b00a2b8e9db363214470548a/raw";
sha256 = "0n6bz3kj4vcqb6q7d0mlj5vl6apn7i2bvfc9mpg59vh3wy47119q";
})
(fetchpatch {
# Open MPI: Workaround removal of MPI_{LB|UB} (upstream patch)
url = "https://bitbucket.org/mpi4py/mpi4py/commits/39ca784226460f9e519507269ebb29635dc8bd90/raw";
sha256 = "02kxikdlsrlq8yr5hca42536mxbrq4k4j8nqv7p1p2r0q21a919q";
})
];
postPatch = ''
substituteInPlace test/test_spawn.py --replace \
"unittest.skipMPI('openmpi(<3.0.0)')" \

View File

@@ -1,21 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pybcrypt";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "5fa13bce551468350d66c4883694850570f3da28d6866bb638ba44fe5eabda78";
};
meta = with stdenv.lib; {
description = "bcrypt password hashing and key derivation";
homepage = https://code.google.com/p/py-bcrypt2;
license = licenses.bsd0;
};
}

View File

@@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, boto3
, six
, pyyaml
, mock
}:
buildPythonPackage rec {
pname = "serverlessrepo";
version = "0.1.8";
src = fetchPypi {
inherit pname version;
sha256 = "533389d41a51450e50cc01405ab766550170149c08e1c85b3a1559b0fab4cb25";
};
propagatedBuildInputs = [
six
boto3
pyyaml
];
checkInputs = [ pytest mock ];
checkPhase = ''
pytest tests/unit
'';
meta = with lib; {
homepage = https://github.com/awslabs/aws-serverlessrepo-python;
description = "Helpers for working with the AWS Serverless Application Repository";
longDescription = ''
A Python library with convenience helpers for working with the
AWS Serverless Application Repository.
'';
license = lib.licenses.asl20;
maintainers = with maintainers; [ dhkl ];
};
}

View File

@@ -2,7 +2,7 @@
buildPythonPackage rec {
pname = "unittest-xml-reporting";
version = "2.2.1";
version = "2.4.0";
propagatedBuildInputs = [six];
@@ -11,7 +11,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "1cn870jgf4h0wb4bnafw527g1dj6rd3rgyjz4f64khd0zx9qs84z";
sha256 = "1qnlz1k77rldgd5dfrj6nhlsjj71xzqy6s4091djpk0s2p8y1550";
};
meta = with lib; {
homepage = https://github.com/xmlrunner/unittest-xml-reporting/tree/master/;

View File

@@ -2,20 +2,18 @@
buildPythonPackage rec {
pname = "user-agents";
version = "1.1.0";
version = "2.0";
# PyPI is missing devices.json
src = fetchFromGitHub {
owner = "selwin";
repo = "python-user-agents";
rev = "v${version}";
sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5";
sha256 = "0ix2yajqdnfj433j50dls90mkmqz8m4fiywxg097zwkkc95wm8s4";
};
propagatedBuildInputs = [ ua-parser ];
doCheck = false; # some tests fail due to ua-parser bump to 0.8.0
meta = with stdenv.lib; {
description = "A Python library to identify devices by parsing user agent strings";
homepage = https://github.com/selwin/python-user-agents;