Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-12-05 09:14:08 +01:00
237 changed files with 2458 additions and 1153 deletions

View File

@@ -1,18 +1,26 @@
{ stdenv, lib
, buildPythonPackage, fetchPypi, isPy3k
, filelock, protobuf, numpy, pytest, mock
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, filelock, protobuf, numpy, pytest, mock, typing-extensions
, cupy, cudaSupport ? false
}:
buildPythonPackage rec {
pname = "chainer";
version = "6.4.0";
version = "6.5.0";
disabled = !isPy3k; # python2.7 abandoned upstream
src = fetchPypi {
inherit pname version;
sha256 = "dacbcaa361cebdfbf6f212d138570333611b8f5de553093b1752c578b022a774";
# no tests in Pypi tarball
src = fetchFromGitHub {
owner = "chainer";
repo = "chainer";
rev = "v${version}";
sha256 = "0ha9fbl6sa3fbnsz3y1pg335iiskdbxw838m5j06zgzy156zna1x";
};
# remove on 7.0 or 6.6 release
postPatch = ''
sed -i '/typing/d' setup.py
'';
checkInputs = [
pytest
mock
@@ -22,12 +30,15 @@ buildPythonPackage rec {
filelock
protobuf
numpy
typing-extensions
] ++ lib.optionals cudaSupport [ cupy ];
# In python3, test was failed...
doCheck = !isPy3k;
# avoid gpu tests
checkPhase = ''
pytest tests/chainer_tests/utils_tests -k 'not gpu and not cupy'
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A flexible framework of neural networks for deep learning";
homepage = https://chainer.org/;
license = licenses.mit;

View File

@@ -6,13 +6,13 @@
buildPythonPackage rec {
pname = "Django";
version = "2.2.7";
version = "2.2.8";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "16040e1288c6c9f68c6da2fe75ebde83c0a158f6f5d54f4c5177b0c1478c5b86";
sha256 = "183wmqgkspb9vk1dc42h5s2h31gjpw68vv6ywbvpljvakiplzbd4";
};
patches = stdenv.lib.optional withGdal

View File

@@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi, flask }:
buildPythonPackage rec {
pname = "Flask-HTTPAuth";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1fb1kr1iw6inkwfv160rpjx54vv1q9b90psdyyghyy1f6dhvgy3f";
};
propagatedBuildInputs = [ flask ];
meta = with lib; {
description = "Extension that provides HTTP authentication for Flask routes";
homepage = "https://github.com/miguelgrinberg/Flask-HTTPAuth";
license = licenses.mit;
maintainers = with maintainers; [ geistesk ];
};
}

View File

@@ -1,8 +1,13 @@
{ stdenv, buildPythonPackage, fetchPypi, requests, protobuf, pycryptodome }:
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, requests
, protobuf
, pycryptodome
}:
buildPythonPackage rec {
version = "0.4.4";
pname = "gpapi";
disabled = pythonOlder "3.3"; # uses shutil.which(), added in 3.3
src = fetchPypi {
inherit version pname;

View File

@@ -4,13 +4,13 @@
buildPythonPackage rec {
pname = "gplaycli";
version = "3.25";
version = "3.26";
src = fetchFromGitHub {
owner = "matlink";
repo = "gplaycli";
rev = version;
sha256 = "1rygx5cg4b1vwpkiaq6jcpbc1ly7cspslv3sy7x8n8ba61ryq6h4";
sha256 = "188237d40q35dp5xs7hg4ybhvsyxi0bsqx5dk4ws9007n596in5f";
};
disabled = !isPy3k;

View File

@@ -37,7 +37,7 @@ buildPythonPackage rec {
services and pipes them into a video player of choice.
'';
license = licenses.bsd2;
maintainers = with maintainers; [ fuuzetsu ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -0,0 +1,39 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
, execnet
, glob2
, Mako
, mock
, parse
, parse-type
, py
, pytest
, six
}:
buildPythonPackage rec {
pname = "pytest-bdd";
version = "3.2.1";
# tests are not included in pypi tarball
src = fetchFromGitHub {
owner = "pytest-dev";
repo = pname;
rev = version;
sha256 = "02y28l5h1m9grj54p681qvv7nrhd7ly9jkqdchyw4p0lnmcmnsrd";
};
propagatedBuildInputs = [ glob2 Mako parse parse-type py pytest six ];
# Tests require extra dependencies
checkInputs = [ execnet mock pytest ];
checkPhase = ''
pytest
'';
meta = with stdenv.lib; {
description = "BDD library for the py.test runner";
homepage = https://github.com/pytest-dev/pytest-bdd;
license = licenses.mit;
maintainers = with maintainers; [ jm2dev ];
};
}