Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2018-11-03 12:42:18 +01:00
176 changed files with 6527 additions and 4292 deletions

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, h2, priority }:
buildPythonPackage rec {
pname = "aioh2";
version = "0.2.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "03i24wzpw0mrnrpck3w6qy83iigwl7n99sdrndqzxfyrc69b99wd";
};
propagatedBuildInputs = [ h2 priority ];
doCheck = false; # https://github.com/decentfox/aioh2/issues/17
meta = with lib; {
homepage = https://github.com/decentfox/aioh2;
description = "HTTP/2 implementation with hyper-h2 on Python 3 asyncio";
license = licenses.bsd3;
maintainers = [ maintainers.qyliss ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib, fetchpatch, buildPythonPackage, fetchPypi
, aiohttp, pytest, pytestcov, pytest-aiohttp
}:
buildPythonPackage rec {
pname = "aiohttp_remotes";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "43c3f7e1c5ba27f29fb4dbde5d43b900b5b5fc7e37bf7e35e6eaedabaec4a3fc";
};
patches = [
(fetchpatch {
url = https://github.com/aio-libs/aiohttp-remotes/commit/188772abcea038c31dae7d607e487eeed44391bc.patch;
sha256 = "0pb1y4jb8ar1szhnjiyj2sdmdk6z9h6c3wrxw59nv9kr3if5igvs";
})
];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytest pytestcov pytest-aiohttp ];
checkPhase = ''
python -m pytest
'';
meta = with lib; {
homepage = https://github.com/wikibusiness/aiohttp-remotes;
description = "A set of useful tools for aiohttp.web server";
license = licenses.mit;
maintainers = [ maintainers.qyliss ];
};
}

View File

@@ -3,12 +3,12 @@
, fetchPypi
, pkgs
, isPy3k
, python
}:
buildPythonPackage rec {
pname = "bsddb3";
version = "6.2.6";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
@@ -17,8 +17,9 @@ buildPythonPackage rec {
buildInputs = [ pkgs.db ];
# Judging from SyntaxError in test
doCheck = false; # test suite breaks python3 compatibility
checkPhase = ''
${python.interpreter} test.py
'';
# Path to database need to be set.
# Somehow the setup.py flag is not propagated.

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
buildPythonPackage rec {
pname = "priority";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
};
checkInputs = [ pytest hypothesis ];
checkPhase = ''
PYTHONPATH="src:$PYTHONPATH" pytest
'';
meta = with lib; {
homepage = https://python-hyper.org/priority/;
description = "A pure-Python implementation of the HTTP/2 priority tree";
license = licenses.mit;
maintainers = [ maintainers.qyliss ];
};
}

View File

@@ -0,0 +1,28 @@
{ stdenv, buildPythonPackage, fetchPypi
, six }:
buildPythonPackage rec {
pname = "trueskill";
version = "0.4.5";
src = fetchPypi {
inherit pname version;
sha256 = "1fv7g1szyjykja9mzax2w4js7jm2z7wwzgnr5dqrsdi84j6v8qlx";
};
propagatedBuildInputs = [
six
];
# Can't build distribute, see https://github.com/NixOS/nixpkgs/pull/49340
doCheck = false;
meta = with stdenv.lib; {
description = "The video game rating system";
homepage = https://trueskill.org;
license = licenses.bsd3;
maintainers = with maintainers; [
eadwu
];
};
}

View File

@@ -0,0 +1,49 @@
{ stdenv, pkgconfig, fetchpatch, fetchFromGitHub, buildPythonPackage
, zstd, pytest }:
buildPythonPackage rec {
pname = "zstd";
version = "1.3.5.1";
# Switch back to fetchPypi when tests/ is included, see https://github.com/NixOS/nixpkgs/pull/49339
src = fetchFromGitHub {
owner = "sergey-dryabzhinsky";
repo = "python-zstd";
rev = "v${version}";
sha256 = "08n1vz4zavas4cgzpdfcbpy33lnv39xxhq5mgj0zv3xi03ypc1rl";
};
postPatch = ''
substituteInPlace setup.py \
--replace "/usr/bin/pkg-config" "${pkgconfig}/bin/pkg-config"
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ zstd ];
setupPyBuildFlags = [
"--external"
"--include-dirs=${zstd}/include"
"--libraries=zstd"
"--library-dirs=${zstd}/lib"
];
# Running tests via setup.py triggers an attempt to recompile with the vendored zstd
ZSTD_EXTERNAL = 1;
VERSION = zstd.version;
PKG_VERSION = version;
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "Simple python bindings to Yann Collet ZSTD compression library";
homepage = https://github.com/sergey-dryabzhinsky/python-zstd;
license = licenses.bsd2;
maintainers = with maintainers; [
eadwu
];
};
}