Merge branch 'staging-next' into staging

This commit is contained in:
Vladimír Čunát
2019-09-22 10:06:45 +02:00
61 changed files with 889 additions and 534 deletions

View File

@@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, hypothesis, mypy }:
buildPythonPackage rec {
pname = "algebraic-data-types";
version = "0.1.1";
src = fetchFromGitHub {
owner = "jspahrsummers";
repo = "adt";
rev = "v" + version;
sha256 = "1py94jsgh6wch59n9dxnwvk74psbpa1679zfmripa1qfc2218kqi";
};
disabled = pythonOlder "3.6";
checkInputs = [
hypothesis
mypy
];
meta = with lib; {
description = "Algebraic data types for Python";
homepage = https://github.com/jspahrsummers/adt;
license = licenses.mit;
maintainers = with maintainers; [ uri-canva ];
platforms = platforms.unix;
};
}

View File

@@ -2,12 +2,12 @@
, pytest, pytestrunner, pytestcov, mock, glibcLocales, lxml, boto3, requests, click, configparser }:
buildPythonPackage rec {
version = "1.12.3";
pname = "aws-adfs";
version = "1.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "b7df3fbe0572eb12294b2e072327ca97fd94d435b39cc10612e460cde914b831";
sha256 = "0wnsmwjpfhxilmvrqvwilcf3h9p5m5ixi5gn9bgkr3gwd2laxf54";
};
# Relax version constraint
@@ -24,10 +24,10 @@ buildPythonPackage rec {
checkInputs = [ glibcLocales pytest pytestrunner pytestcov mock ];
propagatedBuildInputs = [ lxml boto3 requests click configparser ];
meta = {
meta = with lib; {
description = "Command line tool to ease aws cli authentication against ADFS";
homepage = https://github.com/venth/aws-adfs;
license = lib.licenses.psfl;
maintainers = [ lib.maintainers.bhipple ];
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
};
}

View File

@@ -1,18 +1,19 @@
{ stdenv, fetchPypi, buildPythonPackage, hidapi
, pycrypto, pillow, protobuf, future, ecpy, python-u2flib-host, pycryptodomex
, websocket_client
}:
buildPythonPackage rec {
pname = "ledgerblue";
version = "0.1.24";
version = "0.1.28";
src = fetchPypi {
inherit pname version;
sha256 = "fc111ed5db8da93f280928d966f9d87416b464f5f09cec80b60e88c4c1265026";
sha256 = "1jfh4gb3f16ga1ircwiyg7dldldmhn0a5slbpqsqr2g6mlqihpmd";
};
propagatedBuildInputs = [
hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex
hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex websocket_client
];
# No tests

View File

@@ -15,7 +15,7 @@ buildPythonPackage rec {
};
nativeBuildInputs = [ libxml2.dev libxslt.dev ];
buildInputs = [ libxml2 libxslt ];
propagatedBuildInputs = [ libxml2 libxslt ];
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "format";

View File

@@ -3,14 +3,14 @@
buildPythonPackage rec {
pname = "mypy";
version = "0.701";
version = "0.711";
# Tests not included in pip package.
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "05479r3gbq17r22hyhxjg49smx5q864pgx8ayy23rsdj4w6z2r2p";
sha256 = "0s1kwi1dhrv55v0c9w7c1g6mq5d2dpw7x1jj5mcnniw77mclmvdv";
};
disabled = !isPy3k;

View File

@@ -4,8 +4,6 @@
, paramiko
, selectors2
, lxml
, libxml2
, libxslt
, nose
, rednose
}:
@@ -22,7 +20,7 @@ buildPythonPackage rec {
checkInputs = [ nose rednose ];
propagatedBuildInputs = [
paramiko lxml libxml2 libxslt selectors2
paramiko lxml selectors2
];
checkPhase = ''

View File

@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, numpy
, cvxopt
, python
}:
buildPythonPackage rec {
pname = "picos";
version = "1.2.0";
src = fetchFromGitLab {
owner = "picos-api";
repo = "picos";
rev = "v${version}";
sha256 = "018xhc7cb2crkk27lhl63c7h77w5wa37fg41i7nqr4xclr43cs9z";
};
propagatedBuildInputs = [
numpy
cvxopt
];
checkPhase = ''
${python.interpreter} test.py
'';
meta = with lib; {
description = "A Python interface to conic optimization solvers";
homepage = https://gitlab.com/picos-api/picos;
license = licenses.gpl3;
maintainers = with maintainers; [ tobiasBora ];
};
}

View File

@@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server
, pytest, mock, pytestcov, coverage
, pytest, mock, pytestcov, coverage, setuptools
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
providers ? ["*"]
# The following packages are optional and
@@ -44,7 +44,7 @@ buildPythonPackage rec {
HOME=$TEMPDIR pytest
'';
propagatedBuildInputs = [ jedi pluggy future python-jsonrpc-server ]
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ]
++ stdenv.lib.optional (withProvider "autopep8") autopep8
++ stdenv.lib.optional (withProvider "mccabe") mccabe
++ stdenv.lib.optional (withProvider "pycodestyle") pycodestyle

View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, urllib3, certifi }:
{ stdenv, buildPythonPackage, fetchPypi, urllib3, certifi, django, flask, tornado, sanic, aiohttp, bottle, rq, falcon, pyramid, celery }:
buildPythonPackage rec {
pname = "sentry-sdk";
@@ -9,6 +9,8 @@ buildPythonPackage rec {
sha256 = "f5819df450d7b0696be69a0c6d70a09e4890a3844ee8ccb7a461794135bd5965";
};
checkInputs = [ django flask tornado sanic aiohttp bottle rq falcon pyramid celery ];
propagatedBuildInputs = [ urllib3 certifi ];
meta = with stdenv.lib; {

View File

@@ -1,10 +1,12 @@
{ buildPythonPackage, fetchPypi, lib, pythonOlder }:
{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder }:
buildPythonPackage rec {
pname = "typed-ast";
version = "1.3.5";
src = fetchPypi{
inherit pname version;
sha256 = "1m7pr6qpana3cvqwiw7mlvrgvmw27ch5mx1592572xhlki8g85ak";
version = "1.4.0";
src = fetchFromGitHub{
owner = "python";
repo = "typed_ast";
rev = version;
sha256 = "0l0hz809f7i356kmqkvfsaswiidb98j9hs9rrjnfawzqcbffzgyb";
};
# Only works with Python 3.3 and newer;
disabled = pythonOlder "3.3";