Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2020-02-27 10:15:34 +01:00
467 changed files with 11069 additions and 5406 deletions

View File

@@ -25,6 +25,7 @@ buildPythonPackage rec {
description = "A package for acousticians";
maintainers = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ];
homepage = https://github.com/python-acoustics/python-acoustics;
homepage = "https://github.com/python-acoustics/python-acoustics";
broken = true; # no longer compatible with pandas>=1
};
}

View File

@@ -36,7 +36,7 @@ buildPythonPackage rec {
};
checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytestrunner pytest gunicorn async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy freezegun
];

View File

@@ -11,12 +11,12 @@
buildPythonPackage rec {
pname = "aioresponses";
version = "0.6.2";
version = "0.6.3";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0srqbxxxffi3idqd161n5b90xyqy9gibigxxmvqag3nxab5vw1j6";
sha256 = "06w15iyr07s861hkzqfdclzxkpvgg83sx8f235mz8k2490hnyqvv";
};
nativeBuildInputs = [

View File

@@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "aiorun";
version = "2020.1.3";
version = "2020.2.1";
format = "flit";
disabled = isPy27;
@@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "cjrh";
repo = pname;
rev = "v${version}";
sha256 = "0ka0pj6xr47j7rw6kd5mkrr5jyhn631pfpd95ig7vbln4434qnb4";
sha256 = "0wcj8prkijb889ic8n6varms7xkwy028hhw0imgkd1i0p64lm3m4";
};
checkInputs = [

View File

@@ -1,17 +1,21 @@
{ lib
, fetchPypi
, buildPythonPackage
, isPy27
, ansible
, pyyaml
, six
, nose
, setuptools_scm
, ruamel_yaml
, pathlib2
}:
buildPythonPackage rec {
pname = "ansible-lint";
version = "4.2.0";
# pip is not able to import version info on raumel.yaml
disabled = isPy27;
src = fetchPypi {
inherit pname version;
@@ -21,7 +25,8 @@ buildPythonPackage rec {
format = "pyproject";
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ];
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ]
++ lib.optionals isPy27 [ pathlib2 ];
checkInputs = [ nose ];
postPatch = ''

View File

@@ -11,14 +11,14 @@
}:
buildPythonPackage rec {
version = "1.2.1";
version = "1.2.2";
pname = "azure-core";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1fff6g5lszn97qz1h4l1n255r9538yybb329ilb2rwdfq3q9kkg2";
sha256 = "0bz4m6kmqymxlxf9qk6jw8v895d13rsggbgsjpsbvi9px6w15nwb";
};
propagatedBuildInputs = [

View File

@@ -7,13 +7,13 @@
}:
buildPythonPackage rec {
version = "8.0.0";
version = "9.0.0";
pname = "azure-mgmt-network";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1prg4b1agda9bsn6zmvffkj22rr6jy784rdfp6154yifjr6z5jiv";
sha256 = "12bsdbh37xiz42hvrp8ghszyqkiali3pk50x44f3aip12pgx6kix";
};
postInstall = if isPy3k then "" else ''

View File

@@ -8,13 +8,13 @@
buildPythonPackage rec {
version = "7.0.0";
version = "8.0.1";
pname = "azure-mgmt-resource";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "eaea8b5d05495d1b74220052275d46b6bed93b59245bcaa747279a52e41c3bdf";
sha256 = "0gngm7w17r5922ji11pnpa6gp5vh5z6la025v9cda6smsnx0fxx7";
};
postInstall = if isPy3k then "" else ''

View File

@@ -7,13 +7,13 @@
}:
buildPythonPackage rec {
version = "7.0.0";
version = "7.1.0";
pname = "azure-mgmt-storage";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "7f5e6b18dee267c99f08f6a716a93173bbae433c8665f5c59153fb1a963bc105";
sha256 = "03yjvw1dwkwsadsv60i625mr9zpdryy7ywvh7p8fg60djszh1p5l";
};
postInstall = if isPy3k then "" else ''

View File

@@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "0.3.0";
pname = "BespON";
src = fetchPypi {
inherit pname version;
sha256 = "0698vx1kh8c84f5qfhl4grdlyn1lljvdih8yczdz0pql8wkn8i7v";
};
propagatedBuildInputs = [ ];
# upstream doesn't contain tests
doCheck = false;
pythonImportsCheck = [ "bespon" ];
meta = with stdenv.lib; {
description = "Encodes and decodes data in the BespON format.";
homepage = "https://github.com/gpoore/bespon_py";
license = licenses.lgpl3;
maintainers = with maintainers; [ synthetica ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "braintree";
version = "3.58.0";
version = "3.59.0";
src = fetchPypi {
inherit pname version;
sha256 = "0n8k9m3kifj34rzi2a3jgjsik91w8z32xaaxcmvqs7x8m5m3kjj4";
sha256 = "08g8qlnsp9wd2zbf6x3npp1425g7ih4lyljzvybd3vazsbqlw4yq";
};
propagatedBuildInputs = [ requests ];

View File

@@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "bsddb3";
version = "6.2.6";
version = "6.2.7";
src = fetchPypi {
inherit pname version;
sha256 = "42d621f4037425afcb16b67d5600c4556271a071a9a7f7f2c2b1ba65bc582d05";
sha256 = "17yw0by4lycwpvnx06cnzbbchz4zvzbx3j89b20xa314xdizmxxh";
};
buildInputs = [ pkgs.db ];

View File

@@ -24,12 +24,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ wrapt pyserial aenum ] ++ lib.optional (pythonOlder "3.5") typing;
checkInputs = [ nose mock pytest pytest-timeout hypothesis future ];
# Tests won't work with hypothesis 4.7.3 under Python 2. So skip the tests in
# that case. This clause can be removed once hypothesis has been upgraded in
# nixpkgs.
doCheck = !(isPy27 && (hypothesis.version == "4.7.3"));
checkInputs = [ nose mock pytest hypothesis future ];
# Add the scripts to PATH
checkPhase = ''

View File

@@ -44,8 +44,9 @@ buildPythonPackage rec {
doCheck = false;
postPatch = ''
sed -i setup.py -e "/pip>=/c\'pip',"
substituteInPlace setup.py \
--replace 'pip>=9,<=18.1' 'pip' \
--replace 'pip>=9,<=19.4' 'pip' \
--replace 'typing==3.6.4' 'typing' \
--replace 'attrs==17.4.0' 'attrs' \
--replace 'click>=6.6,<7.0' 'click'

View File

@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "ckcc-protocol";
version = "0.8.0";
version = "1.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1mbs9l8qycy50j5lq6az7l5d8i40nb0vmlyhcyax298qp6c1r1gh";
sha256 = "1glws7z7kk9qyl1j4446hb6vv3l4s5xca40zb4fzhsh6chm76h11";
};
checkInputs = [

View File

@@ -0,0 +1,49 @@
{ lib
, pythonOlder
, buildPythonPackage
, fetchPypi
, cvxopt
, ecos
, multiprocess
, numpy
, osqp
, scipy
, scs
, six
# Check inputs
, nose
}:
buildPythonPackage rec {
pname = "cvxpy";
version = "1.0.25";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "04zalvc8lckjfzm3i2ir32ib5pd6v7hxqqcnsnq6fw40vffm4dc5";
};
propagatedBuildInputs = [
cvxopt
ecos
multiprocess
osqp
scs
six
];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = {
description = "A domain-specific language for modeling convex optimization problems in Python.";
homepage = "https://www.cvxpy.org/";
downloadPage = "https://github.com/cvxgrp/cvxpy/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ drewrisinger ];
};
}

View File

@@ -4,11 +4,11 @@
buildPythonPackage rec {
pname = "datadog";
version = "0.33.0";
version = "0.34.1";
src = fetchPypi {
inherit pname version;
sha256 = "bce73f33a4496b004402baa502251150e3b48a48f610ff89d4cd110b366ee0ab";
sha256 = "1msi3wm0khmzh0ad7lwd5gigmqrxj25hd4w0qrsarihmd4ywrn1v";
};
postPatch = ''
@@ -25,6 +25,6 @@ buildPythonPackage rec {
meta = with lib; {
description = "The Datadog Python library";
license = licenses.bsd3;
homepage = https://github.com/DataDog/datadogpy;
homepage = "https://github.com/DataDog/datadogpy";
};
}

View File

@@ -2,18 +2,18 @@
buildPythonPackage rec {
pname = "django-gravatar2";
version = "1.4.2";
version = "1.4.4";
src = fetchPypi {
inherit pname version;
sha256 = "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6";
sha256 = "1vn921fb6jjx7rf5dzhy66rkb71nwmh9ydd0xs9ys72icw4jh4y8";
};
doCheck = false;
meta = with stdenv.lib; {
description = "Essential Gravatar support for Django";
homepage = https://github.com/twaddington/django-gravatar;
homepage = "https://github.com/twaddington/django-gravatar";
license = licenses.mit;
};
}

View File

@@ -0,0 +1,55 @@
{ lib, buildPythonPackage, fetchPypi, isPy27,
appdirs, asn1crypto, cffi, cryptography, furl, idna, orderedmultidict,
packaging, peewee, py, pyasn1, pycparser, pyparsing, pyscrypt,
python-dateutil, pytz, requests, six, vobject,
pytest
}:
buildPythonPackage rec {
pname = "etesync";
version = "0.9.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1i6v7i4xmbpkc1pgpzq8gyl2kvg3a1kpdwp8q6l3l0vf9p5qm06w";
};
propagatedBuildInputs = [
appdirs
asn1crypto
cffi
cryptography
furl
idna
orderedmultidict
packaging
peewee
py
pyasn1
pycparser
pyparsing
pyscrypt
python-dateutil
pytz
requests
six
vobject
];
checkInputs = [
pytest
];
checkPhase = ''
pytest tests/test_collections.py
pytest tests/test_crypto.py
'';
meta = with lib; {
homepage = "https://www.etesync.com/";
description = "A python API to interact with an EteSync server.";
license = licenses.lgpl3;
maintainers = with maintainers; [ valodim ];
};
}

View File

@@ -4,13 +4,13 @@
buildPythonPackage rec {
pname = "face_recognition";
version = "1.2.3";
version = "1.3.0";
src = fetchFromGitHub {
repo = pname;
owner = "ageitgey";
rev = "634db2e4309a365cee2503cb65d6f2e88f519d1e";
sha256 = "06zw5hq417d5yp17zynhxhb73074lx2qy64fqfzf711rw5vrn2mx";
rev = "d34c622bf42e2c619505a4884017051ecf61ac77";
sha256 = "052878vnh3vbrsvmpgr0bx78k524dlxn47b2xakzbxk7dyjrgcli";
};
postPatch = ''

View File

@@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, cython
, numpy
# Check Inputs
, pytestCheckHook
, python
}:
buildPythonPackage rec {
pname = "fastdtw";
version = "0.3.4";
src = fetchFromGitHub {
owner = "slaypni";
repo = pname;
rev = "v${version}";
sha256 = "0irc5x4ahfp7f7q4ic97qa898s2awi0vdjznahxrfjirn8b157dw";
};
patches = [
# Removes outdated cythonized C++ file, which doesn't match CPython. Will be auto-used if left.
# Remove when PR 40 merged
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/slaypni/fastdtw/pull/40.patch";
sha256 = "0xjma0h84bk1n32wgk99rwfc85scp187a7fykhnylmcc73ppal9q";
})
];
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
numpy
];
pythonImportsCheck = [ "fastdtw.fastdtw" ];
checkInputs = [ pytestCheckHook ];
dontUseSetuptoolsCheck = true; # looks for pytest-runner
preCheck = ''
echo "Temporarily moving tests to $OUT to find cython modules"
export PACKAGEDIR=$out/${python.sitePackages}
cp -r $TMP/source/tests $PACKAGEDIR
pushd $PACKAGEDIR
'';
postCheck = ''
rm -rf tests
popd
'';
meta = with lib; {
description = "Python implementation of FastDTW (Dynamic Time Warping)";
longDescription = ''
FastDTW is an approximate Dynamic Time Warping (DTW) algorithm that provides
optimal or near-optimal alignments with an O(N) time and memory complexity.
'';
homepage = "https://github.com/slaypni/fastdtw";
license = licenses.mit;
maintainers = with maintainers; [ drewrisinger ];
};
}

View File

@@ -5,11 +5,11 @@
buildPythonPackage rec {
pname = "filebytes";
version = "0.10.0";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "97d1f1f4ba660d8df6c51beea36ea7185704307d54b0b5d72ce57415c9ece082";
sha256 = "0h97i6h525hg401dvvaa5krxi184qpvldbdn0izmirvr9pvh4hkn";
};
meta = with stdenv.lib; {

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "flask-babelex";
version = "0.9.3";
version = "0.9.4";
src = fetchPypi {
inherit version;
pname = "Flask-BabelEx";
sha256 = "cf79cdedb5ce860166120136b0e059e9d97b8df07a3bc2411f6243de04b754b4";
sha256 = "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r";
};
propagatedBuildInputs = [
@@ -40,7 +40,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Adds i18n/l10n support to Flask applications";
homepage = https://github.com/mrjoes/flask-babelex;
homepage = "https://github.com/mrjoes/flask-babelex";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};

View File

@@ -7,17 +7,16 @@
, aiohttp
, androguard
, azure-identity
, azure-keyvault-keys
, azure-keyvault-secrets
, azure-keyvault
, azure-mgmt-compute
, azure-mgmt-keyvault
, azure-mgmt-network
, azure-mgmt-resource
, azure-mgmt-security
, azure-mgmt-storage
, azure-mgmt-sql
, azure-mgmt-web
, azure-storage-file
, azure-storage-file-share
, azure-storage
, bandit
, bcrypt
, beautifulsoup4
@@ -45,11 +44,14 @@
, pyhcl
, pyjks
, pynacl
, pyodbc
, pyopenssl
, pypdf2
, pysmb
, pytesseract
, python_magic
, pytz
, pywinrm
, requirements-detector
, selenium
, tlslite-ng
@@ -57,35 +59,30 @@
# pythonPackages to test the derivation
, pytest
, flask
, flask-httpauth
, docker
}:
buildPythonPackage rec {
pname = "fluidasserts";
version = "20.1.33141";
version = "20.2.30165";
disabled = !isPy37;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "01l6yb3r19q8b4kwqkrzn7mpfsr65zsgzax2fbs43hb6pq6vavnx";
sha256 = "0wcplzfx89d3c6hvdgag860sl3infqmymy6ly6y6ah77pkc98x15";
};
patchPhase = ''
# Version mismatches between current FluidAsserts and Nixpkgs
substituteInPlace ./setup.py \
--replace 'tlslite-ng==0.8.0-alpha36' 'tlslite-ng==0.7.5' \
--replace 'boto3==1.11.7' 'boto3==1.10.1' \
--replace 'typed-ast==1.4.1' 'typed-ast==1.4.0' \
--replace 'pillow==7.0.0' 'pillow==6.2.1' \
# Release packages from their hard pinned versions
sed -i -E "s/(.*)==.*/\1/g" requirements.txt
# Functionality that will be not present for the momment
# but that we'll work to add in the future
# Just a minimal portion of fluidasserts use this
substituteInPlace ./setup.py \
--replace "'pymssql==2.1.4'," "" \
--replace "'pytesseract==0.3.1'," "" \
--replace "'pywinrm==0.4.1'," "" \
--replace "'mitmproxy==5.0.1'," "" \
substituteInPlace ./requirements.txt \
--replace "mitmproxy" "" \
'';
@@ -94,17 +91,16 @@ buildPythonPackage rec {
aiohttp
androguard
azure-identity
azure-keyvault-keys
azure-keyvault-secrets
azure-keyvault
azure-mgmt-compute
azure-mgmt-keyvault
azure-mgmt-network
azure-mgmt-resource
azure-mgmt-security
azure-mgmt-storage
azure-mgmt-sql
azure-mgmt-web
azure-storage-file
azure-storage-file-share
azure-storage
bandit
bcrypt
beautifulsoup4
@@ -132,28 +128,67 @@ buildPythonPackage rec {
pyhcl
pyjks
pynacl
pyodbc
pyopenssl
pypdf2
pysmb
pytesseract
python_magic
pytz
pywinrm
requirements-detector
selenium
tlslite-ng
viewstate
];
configurePhase = ''
mkdir -p build/config
touch build/config/README.rst
'';
checkInputs = [
docker
flask
flask-httpauth
pytest
];
checkPhase = ''
# This tests require BWAPP Docker Container
sed -ie 's/test_a[0-9]//g' ./test/test_proto_http_open.py
sed -ie 's/test_a[0-9]//g' ./test/test_proto_http_close.py
# This tests require network connectivity
sed -ie 's/test_is_date_unsyncd//g' ./test/test_proto_http_open.py
sed -ie 's/test_is_date_unsyncd//g' ./test/test_proto_http_close.py
# Remove impurities
substituteInPlace ./test/conftest.py \
--replace "import wait" "" \
--replace "if not os.path.exists(name):" "if os.path.exists(name):" \
--replace "from test.mock import graphql_server" "" \
--replace "(graphql_server.start, 'MockGraphQLServer', ['proto_graphql'])," "" \
pytest --asserts-module 'iot' \
test/test_iot_phone.py
pytest --asserts-module 'ot' \
test/test_ot_powerlogic.py
pytest --asserts-module 'proto_http' \
test/test_proto_{http_close,http_open}.py
pytest --asserts-module 'proto_rest' \
test/test_proto_rest.py
# This file launches mock docker containers and servers
# let's remove it to create a custom test environment
rm test/conftest.py
pytest \
test/test_cloud_aws_terraform_{ebs,ec2}.py \
test/test_cloud_aws_terraform_{cloudfront,dynamodb,ebs,ec2,elb}.py \
test/test_cloud_aws_terraform_{fsx,iam,kms,rds,s3}.py \
test/test_cloud_aws_cloudformation_{cloudfront,dynamodb,ec2,elb,elb2}.py \
test/test_cloud_aws_cloudformation_{fsx,iam,kms,rds,s3,secretsmanager}.py \
test/test_format_{apk,jks,jwt,pdf,pkcs12,string}.py \
@@ -161,7 +196,6 @@ buildPythonPackage rec {
test/test_lang_{javascript,java}.py \
test/test_lang_{core,csharp,docker,dotnetconfig,html,php,python,rpgle}.py \
test/test_utils_generic.py
'';
meta = with lib; {

View File

@@ -1,22 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict }:
{ stdenv, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict, pytest }:
buildPythonPackage rec {
pname = "furl";
version = "2.0.0";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx";
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
};
checkInputs = [ flake8 ];
checkInputs = [ flake8 pytest ];
propagatedBuildInputs = [ six orderedmultidict ];
# see https://github.com/gruns/furl/issues/121
checkPhase = ''
pytest -k 'not join'
'';
meta = with stdenv.lib; {
description = "URL manipulation made simple.";
homepage = https://github.com/gruns/furl;
license = licenses.publicDomain;
description = "furl is a small Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl";
license = licenses.unlicense;
maintainers = with maintainers; [ vanzef ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "fuzzywuzzy";
version = "0.17.0";
version = "0.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "6f49de47db00e1c71d40ad16da42284ac357936fa9b66bea1df63fed07122d62";
sha256 = "1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5";
};
propagatedBuildInputs = [ python-Levenshtein ];

View File

@@ -30,6 +30,6 @@ buildPythonPackage rec {
description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -21,6 +21,6 @@ buildPythonPackage rec {
description = "This library simplifies using Googles various server-to-server authentication mechanisms to access Google APIs.";
homepage = "https://google-auth.readthedocs.io/en/latest/";
license = licenses.asl20;
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -22,6 +22,6 @@ buildPythonPackage rec {
description = "API Client library for Google Cloud: Core Helpers";
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
license = licenses.asl20;
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -21,6 +21,6 @@ buildPythonPackage rec {
description = "Cloud Speech API enables integration of Google speech recognition into applications.";
homepage = "https://github.com/googleapis/google-cloud-python/tree/master/speech";
license = licenses.asl20;
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -19,6 +19,6 @@ buildPythonPackage rec {
description = "Common protobufs used in Google APIs";
homepage = "https://github.com/googleapis/googleapis";
license = licenses.asl20;
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests, pytest, coveralls }:
buildPythonPackage rec {
pname = "googletrans";
version = "2.4.0";
src = fetchFromGitHub {
owner = "ssut";
repo = "py-googletrans";
rev = "v${version}";
sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz";
};
propagatedBuildInputs = [
requests
];
checkInputs = [ pytest coveralls ];
# majority of tests just try to ping Google's Translate API endpoint
doCheck = false;
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "googletrans" ];
meta = with lib; {
description = "Googletrans is python library to interact with Google Translate API";
homepage = "https://py-googletrans.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ unode ];
};
}

View File

@@ -0,0 +1,54 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, coveralls
, promise
, pytest
, pytest-benchmark
, pytest-mock
, rx
, six
}:
buildPythonPackage rec {
pname = "graphql-core";
version = "2.3.1";
src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "v${version}";
sha256 = "029jnwy6zbj4x7f3ffpn1gyx0w9ala9cj2g115g6aa7im3xd2jma";
};
propagatedBuildInputs = [
promise
rx
six
];
checkInputs = [
coveralls
pytest
pytest-benchmark
pytest-mock
];
checkPhase = "pytest";
configurePhase = ''
substituteInPlace setup.py \
--replace 'pytest-mock==1.2' 'pytest-mock==1.13.0' \
--replace 'pytest-benchmark==3.0.0' 'pytest-benchmark==3.2.2'
'';
meta = with lib; {
description = "Port of graphql-js to Python";
homepage = "https://github.com/graphql-python/graphql-core";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -0,0 +1,40 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, black
, graphql-core
, promise
}:
buildPythonPackage rec {
pname = "graphql-server-core";
version = "1.2.0";
src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "v${version}";
sha256 = "123q3xziv0s22h10v3f5slirf4b6nxj0hnmarwx9vws6x21bgrgh";
};
propagatedBuildInputs = [
graphql-core
promise
];
checkPhase = "black --check graphql_server tests";
checkInputs = [
black
];
meta = with lib; {
description = "Core package for using GraphQL in a custom server easily";
homepage = "https://github.com/graphql-python/graphql-server-core";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -20,6 +20,6 @@ buildPythonPackage rec {
description = "Protobuf code generator for gRPC";
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -18,6 +18,6 @@ buildPythonPackage rec {
description = "HTTP/2-based RPC framework";
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
maintainers = with maintainers; [ ];
};
}

View File

@@ -18,13 +18,13 @@
buildPythonPackage rec {
pname = "gssapi";
version = "1.6.1";
version = "1.6.2";
src = fetchFromGitHub {
owner = "pythongssapi";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0n13vb3v50vr04vrnql2w00gri0gcf08i0pr0q2p4w8scbsw7kjk";
sha256 = "195x3zqzyv491i9hf7l4asmic5pb2w3l1r7bps89651wkb3mrz1l";
};
# It's used to locate headers
@@ -63,7 +63,7 @@ buildPythonPackage rec {
'';
meta = with lib; {
homepage = https://pypi.python.org/pypi/gssapi;
homepage = "https://pypi.python.org/pypi/gssapi";
description = "Python GSSAPI Wrapper";
license = licenses.mit;
};

View File

@@ -0,0 +1,24 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "hg-evolve";
version = "9.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "08bjrgxv8zrrz5xxydzkjl4a8cw3g62nmzfnvdzxxcrf1c96qw76";
};
doCheck = false;
meta = with stdenv.lib; {
description = "Enables the changeset evolution feature of Mercurial core";
homepage = "https://www.mercurial-scm.org/doc/evolution/";
maintainers = with maintainers; [ xavierzwirtz ];
license = stdenv.lib.licenses.gpl2Plus;
};
}

View File

@@ -37,6 +37,7 @@ buildPythonPackage rec {
"tests.functional.test_httplib2.test_callback_response"
"tests.functional.test_requests.test_streaming_responses"
"tests.functional.test_httplib2.test_callback_response"
"tests.functional.test_requests.test_httpretty_should_allow_adding_and_overwritting_by_kwargs_u2"
];
meta = with stdenv.lib; {

View File

@@ -1,5 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, markupsafe }:
{ stdenv
, buildPythonPackage
, isPy3k
, fetchPypi
, pytest
, markupsafe }:
buildPythonPackage rec {
pname = "Jinja2";
@@ -13,6 +17,10 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
propagatedBuildInputs = [ markupsafe ];
# Multiple tests run out of stack space on 32bit systems with python2.
# See https://github.com/pallets/jinja/issues/1158
doCheck = !stdenv.is32bit || isPy3k;
checkPhase = ''
pytest -v tests
'';

View File

@@ -5,7 +5,7 @@
buildPythonPackage rec {
pname = "Jug";
version = "1.6.9";
version = "2.0.0";
buildInputs = [ nose numpy ];
propagatedBuildInputs = [
bottle
@@ -18,13 +18,13 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "0193hp8ap6caw57jdch3vw0hl5m8942lxhjdsfaxk4bfb239l5kz";
sha256 = "1am73pis8qrbgmpwrkja2qr0n9an6qha1k1yp87nx6iq28w5h7cv";
};
meta = with stdenv.lib; {
description = "A Task-Based Parallelization Framework";
license = licenses.mit;
homepage = https://jug.readthedocs.io/;
homepage = "https://jug.readthedocs.io/";
maintainers = with maintainers; [ luispedro ];
};
}

View File

@@ -2,9 +2,11 @@
, buildPythonPackage
, fetchPypi
, twisted
, passlib
, pycrypto
, pyopenssl
, pyparsing
, service-identity
, zope_interface
, isPy3k
}:
@@ -19,7 +21,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
twisted pycrypto pyopenssl pyparsing zope_interface
twisted passlib pycrypto pyopenssl pyparsing service-identity zope_interface
];
disabled = isPy3k;
@@ -32,4 +34,4 @@ buildPythonPackage rec {
homepage = https://github.com/twisted/ldaptor;
license = lib.licenses.mit;
};
}
}

View File

@@ -1,17 +1,18 @@
{ buildPythonPackage
, fetchFromGitHub
, mock
, unittest2
, msgpack
, requests
{ buildPythonPackage, fetchFromGitHub, isPy38
, flask
, gevent
, mock
, msgpack
, pyzmq
, requests
, unittest2
}:
buildPythonPackage rec {
pname = "locustio";
version = "0.9.0";
version = "0.14.4";
# tests hang on python38
disabled = isPy38;
src = fetchFromGitHub {
owner = "locustio";
@@ -21,10 +22,14 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
buildInputs = [ mock unittest2 ];
checkInputs = [ mock unittest2 ];
# remove file which attempts to do GET request
preCheck = ''
rm locust/test/test_stats.py
'';
meta = {
homepage = https://locust.io/;
homepage = "https://locust.io/";
description = "A load testing tool";
};
}

View File

@@ -1,12 +1,12 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:
buildPythonPackage rec {
version = "1.2.0";
version = "1.2.1";
pname = "mockito";
src = fetchPypi {
inherit pname version;
sha256 = "2a1cbae9d0aef4ae7586b03f2a463e8c5ba96aa937c0535ced4a5621f851feeb";
sha256 = "1ilj73bdk81v4l7ir6hbfvmslzbsxkgvz1asngbyf7w5gl2y5nyf";
};
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
@@ -20,7 +20,7 @@ buildPythonPackage rec {
meta = with stdenv.lib; {
description = "Spying framework";
homepage = https://github.com/kaste/mockito-python;
homepage = "https://github.com/kaste/mockito-python";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};

View File

@@ -1,35 +0,0 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, pafy
}:
buildPythonPackage rec {
pname = "mps-youtube";
version = "0.2.8";
disabled = (!isPy3k);
src = fetchFromGitHub {
owner = "mps-youtube";
repo = "mps-youtube";
rev = "v${version}";
sha256 = "1w1jhw9rg3dx7vp97cwrk5fymipkcy2wrbl1jaa38ivcjhqg596y";
};
propagatedBuildInputs = [ pafy ];
# disabled due to error in loading unittest
# don't know how to make test from: <mps_youtube. ...>
doCheck = false;
# before check create a directory and redirect XDG_CONFIG_HOME to it
preCheck = ''
mkdir -p check-phase
export XDG_CONFIG_HOME=$(pwd)/check-phase
'';
meta = with lib; {
description = "Terminal based YouTube player and downloader";
homepage = "https://github.com/mps-youtube/mps-youtube";
license = licenses.gpl3;
maintainers = with maintainers; [ odi ];
};
}

View File

@@ -6,11 +6,11 @@
buildPythonPackage rec {
pname = "msgpack";
version = "0.6.2";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "ea3c2f859346fcd55fc46e96885301d9c2f7a36d453f5d8f2967840efa1e1830";
sha256 = "1h5mxh84rcw04dvxy1qbfn2hisavfqgilh9k09rgyjhd936dad4m";
};
checkPhase = ''

View File

@@ -1,9 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub
, python3, protobuf3_6
}:
{ lib, buildPythonPackage, fetchFromGitHub, python, protobuf3_6 }:
let
python = python3.override {
py = python.override {
packageOverrides = self: super: {
protobuf = super.protobuf.override {
protobuf = protobuf3_6;
@@ -21,7 +19,7 @@ in buildPythonPackage rec {
sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg";
};
propagatedBuildInputs = with python.pkgs; [ protobuf dnspython ];
propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ];
# Tests are failing (TODO: unknown reason)
# TypeError: __init__() missing 1 required positional argument: 'string'

View File

@@ -12,11 +12,11 @@
buildPythonPackage rec {
pname = "nbsphinx";
version = "0.5.0";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "03g0mqbgk143cq3l3r42js2iy5l6iyvpckpqip4p468rlzrddyhn";
sha256 = "0kh0d83xavpffdp4xp4hq8xy43l6lyv3d1a25rnc15jcbdf1nghw";
};
propagatedBuildInputs = [

View File

@@ -15,11 +15,11 @@
buildPythonPackage rec {
pname = "nbval";
version = "0.9.4";
version = "0.9.5";
src = fetchPypi {
inherit pname version;
sha256 = "5273c2d958335e24b170fe59b689b13e4b1855b569626e18b1c7e420f5110cc6";
sha256 = "1xh2p7g5s5g06caaraf3dsz69bpj7dgw2h3ss67kci789aspnwp8";
};
checkInputs = [

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, callPackage
, isPy27, isPy34
, isPy27, isPy34, pythonOlder
, cleo
, requests
, cachy
@@ -7,7 +7,6 @@
, pyrsistent
, pyparsing
, cachecontrol
, lockfile
, pkginfo
, html5lib
, shellingham
@@ -17,42 +16,43 @@
, pathlib2
, virtualenv
, functools32
, clikit
, keyring
, pexpect
, importlib-metadata
, pytest
, jsonschema
, intreehooks
, lockfile
}:
let
cleo6 = cleo.overridePythonAttrs (oldAttrs: rec {
version = "0.6.8";
src = fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5";
};
});
glob2 = callPackage ./glob2.nix { };
in buildPythonPackage rec {
pname = "poetry";
version = "0.12.17";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "0gxwcd65qjmzqzppf53x51sic1rbcd9py6cdzx3aprppipimslvf";
sha256 = "0fx1ilgkrsqjjnpgv5zljsp0wpcsywdqvvi8im9z396qq6qpk830";
};
postPatch = ''
substituteInPlace setup.py --replace \
"requests-toolbelt>=0.8.0,<0.9.0" \
"requests-toolbelt>=0.8.0,<0.10.0" \
--replace 'pyrsistent>=0.14.2,<0.15.0' 'pyrsistent>=0.14.2,<0.16.0'
substituteInPlace pyproject.toml \
--replace "pyrsistent = \"^0.14.2\"" "pyrsistent = \"^0.15.0\"" \
--replace "requests-toolbelt = \"^0.8.0\"" "requests-toolbelt = \"^0.9.0\"" \
--replace "importlib-metadata = {version = \"~1.1.3\", python = \"<3.8\"}" \
"importlib-metadata = {version = \"~1.3.0\", python = \"<3.8\"}"
'';
format = "pyproject";
nativeBuildInputs = [ intreehooks ];
propagatedBuildInputs = [
cachy
cleo6
cleo
clikit
requests
cachy
requests-toolbelt
@@ -60,13 +60,16 @@ in buildPythonPackage rec {
pyrsistent
pyparsing
cachecontrol
lockfile
pkginfo
html5lib
shellingham
tomlkit
pexpect
keyring
lockfile
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 glob2 ]
++ lib.optionals isPy27 [ virtualenv functools32 subprocess32 ];
++ lib.optionals isPy27 [ virtualenv functools32 subprocess32 ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
postInstall = ''
mkdir -p "$out/share/bash-completion/completions"
@@ -85,7 +88,7 @@ in buildPythonPackage rec {
'';
meta = with lib; {
homepage = https://github.com/sdispater/poetry;
homepage = "https://python-poetry.org/";
description = "Python dependency management and packaging made easy";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];

View File

@@ -0,0 +1,49 @@
{ buildPythonPackage
, fetchPypi
, lib
, coveralls
, gevent
, mock
, pytest-asyncio
, pytest-benchmark
, pytestcov
, six
}:
buildPythonPackage rec {
pname = "promise";
version = "2.3";
src = fetchPypi {
inherit pname version;
sha256 = "1l4kknj97dj5pxfpsz3ln78x9a843561c740b1m4pfi3qlvq7lfz";
};
patchPhase = ''
substituteInPlace setup.py \
--replace '"futures",' ""
'';
propagatedBuildInputs = [
gevent
six
];
checkInputs = [
coveralls
mock
pytest-asyncio
pytest-benchmark
pytestcov
];
meta = with lib; {
description = "Ultra-performant Promise implementation in Python";
homepage = "https://github.com/syrusakbary/promise";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@@ -1,26 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchPypi
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, python
, darwin
, pytest
, mock
, ipaddress
}:
buildPythonPackage rec {
pname = "psutil";
version = "5.6.7";
version = "5.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "ffad8eb2ac614518bbe3c0b8eb9dffdb3a8d2e3a7d5da51c5b974fb723a5c5aa";
sha256 = "03jykdi3dgf1cdal9bv4fq9zjvzj9l9bs99gi5ar81sdl5nc2pk8";
};
# No tests in archive
doCheck = false;
# arch doesn't report frequency is the same way
doCheck = stdenv.isx86_64;
checkInputs = [ pytest ]
++ lib.optionals isPy27 [ mock ipaddress ];
# out must be referenced as test import paths are relative
# disable tests which don't work in sandbox
# cpu_times is flakey on darwin
checkPhase = ''
pytest $out/${python.sitePackages}/psutil/tests/test_system.py \
-k 'not user \
and not disk_io_counters and not sensors_battery \
and not cpu_times'
'';
buildInputs = [] ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit ];
buildInputs = lib.optionals stdenv.isDarwin [ darwin.IOKit ];
meta = {
pythonImportsCheck = [ "psutil" ];
meta = with lib; {
description = "Process and system utilization information interface for python";
homepage = https://github.com/giampaolo/psutil;
license = stdenv.lib.licenses.bsd3;
homepage = "https://github.com/giampaolo/psutil";
license = licenses.bsd3;
maintainers = with maintainers; [ jonringer ];
};
}

View File

@@ -3,15 +3,16 @@
, fetchPypi
, libGLU, libGL
, xorg
, numpy
}:
buildPythonPackage rec {
pname = "pybullet";
version = "2.6.1";
version = "2.6.6";
src = fetchPypi {
inherit pname version;
sha256 = "c6da064687ae481c73b744b9f3a62d8231349a6bf368d7a2e564f71ef73e9403";
sha256 = "1lsvjqij1vb9w8j6lvnq7lppflc7svz4cj37n74q67mb46gq3dxr";
};
buildInputs = [
@@ -19,6 +20,8 @@ buildPythonPackage rec {
xorg.libX11
];
propagatedBuildInputs = [ numpy ];
patches = [
# make sure X11 and OpenGL can be found at runtime
./static-libs.patch

View File

@@ -1,13 +1,13 @@
diff --git a/setup.py b/setup.py
index 98efabdbf..e69e79084 100644
index 6f7bd7589..321fc6ab0 100644
--- a/setup.py
+++ b/setup.py
@@ -563,6 +563,8 @@ print("-----")
@@ -465,6 +465,8 @@ print("-----")
extensions = []
+libraries += [ "X11", "GL" ] # statically link x11 and opengl
+
pybullet_ext = Extension("pybullet",
sources = sources,
libraries = libraries,
pybullet_ext = Extension(
"pybullet",
sources=sources,

View File

@@ -1,14 +1,14 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, isPyPy
, six
}:
buildPythonPackage rec {
version = "0.12.0";
pname = "pyfribidi";
disabled = isPy3k || isPyPy;
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
@@ -16,6 +16,10 @@ buildPythonPackage rec {
sha256 = "64726a4a56783acdc79c6b9b3a15f16e6071077c897a0b999f3b43f744bc621c";
};
patches = stdenv.lib.optional stdenv.cc.isClang ./pyfribidi-clang.patch;
propagatedBuildInputs = [ six ];
meta = with stdenv.lib; {
description = "A simple wrapper around fribidi";
homepage = https://github.com/pediapress/pyfribidi;

View File

@@ -0,0 +1,17 @@
diff --git a/pyfribidi.c b/pyfribidi.c
index 9a0120d..238134a 100644
--- a/pyfribidi.c
+++ b/pyfribidi.c
@@ -148,10 +148,11 @@ init_pyfribidi (void)
{
#if PY_MAJOR_VERSION >= 3
PyObject *module = PyModule_Create (&pyfribidi_moduledef);
+ if (module == NULL) return NULL;
#else
PyObject *module = Py_InitModule ("_pyfribidi", PyfribidiMethods);
+ if (module == NULL) return;
#endif
- if (module == NULL) return NULL;
PyModule_AddIntConstant (module, "RTL", (long) FRIBIDI_TYPE_RTL);
PyModule_AddIntConstant (module, "LTR", (long) FRIBIDI_TYPE_LTR);

View File

@@ -8,12 +8,12 @@
}:
buildPythonPackage rec {
version = "1.5.5";
version = "1.5.6";
pname = "pyftpdlib";
src = fetchPypi {
inherit pname version;
sha256 = "1adf1c03d1508749e7c2f26dc9850ec0ef834318d725b7ae5ac91698f5c86752";
sha256 = "0pnv2byzmzg84q5nmmhn1xafvfil85qa5y52bj455br93zc5b9px";
};
checkInputs = [ mock psutil ];

View File

@@ -2,12 +2,12 @@
buildPythonPackage rec {
pname = "pyodbc";
version = "4.0.28";
version = "4.0.30";
disabled = isPyPy; # use pypypdbc instead
src = fetchPypi {
inherit pname version;
sha256 = "510643354c4c687ed96bf7e7cec4d02d6c626ecf3e18696f5a0228dd6d11b769";
sha256 = "0skjpraar6hcwsy82612bpj8nw016ncyvvq88j5syrikxgp5saw5";
};
buildInputs = [ unixODBC ];

View File

@@ -19,6 +19,8 @@ buildPythonPackage rec {
patchPhase = let
ext = stdenv.hostPlatform.extensions.sharedLibrary; in ''
# Theses lines are patching the name of dynamic libraries
# so pyopengl can find them at runtime.
substituteInPlace OpenGL/platform/glx.py \
--replace "'GL'" "'${pkgs.libGL}/lib/libGL${ext}'" \
--replace "'GLU'" "'${pkgs.libGLU}/lib/libGLU${ext}'" \
@@ -26,6 +28,16 @@ buildPythonPackage rec {
substituteInPlace OpenGL/platform/darwin.py \
--replace "'OpenGL'" "'${pkgs.libGL}/lib/libGL${ext}'" \
--replace "'GLUT'" "'${pkgs.freeglut}/lib/libglut${ext}'"
# https://github.com/NixOS/nixpkgs/issues/76822
# pyopengl introduced a new "robust" way of loading libraries in 3.1.4.
# The later patch of the filepath does not work anymore because
# pyopengl takes the "name" (for us: the path) and tries to add a
# few suffix during its loading phase.
# The following patch put back the "name" (i.e. the path) in the
# list of possible files.
substituteInPlace OpenGL/platform/ctypesloader.py \
--replace "filenames_to_try = []" "filenames_to_try = [name]"
'';
# Need to fix test runner

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pyroute2";
version = "0.5.7";
version = "0.5.9";
src = fetchPypi {
inherit pname version;
sha256 = "963fce07da2841456d39e3b932b071f6de28d23dadfae014022d67a752916f98";
sha256 = "1dymaa3rif05k42sh4c3g2m057v2dsc2f3f49hl2rw5yz8bd23i4";
};
# requires root priviledges

View File

@@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "pysam";
version = "0.15.3";
version = "0.15.4";
# Fetching from GitHub instead of PyPi cause the 0.13 src release on PyPi is
# missing some files which cause test failures.
@@ -23,26 +23,35 @@ buildPythonPackage rec {
owner = "pysam-developers";
repo = "pysam";
rev = "v${version}";
sha256 = "0g6md20gsr24pdr9b8nj403w31ixfjv8bjhdvg3x476kjiq1kvyb";
sha256 = "04w6h6mv6lsr74hj9gy4r2laifcbhgl2bjcr4r1l9r73xdd45mdy";
};
nativeBuildInputs = [ samtools ];
buildInputs = [ bzip2 curl cython lzma zlib ];
checkInputs = [ pytest bcftools htslib samtools ];
checkInputs = [ pytest bcftools htslib ];
checkPhase = "py.test";
preInstall = ''
# tests require samtools<=1.9
doCheck = false;
preCheck = ''
export HOME=$(mktemp -d)
make -C tests/pysam_data
make -C tests/cbcf_data
'';
meta = {
homepage = https://pysam.readthedocs.io/;
pythonImportsCheck = [
"pysam"
"pysam.bcftools"
"pysam.libcutils"
"pysam.libcvcf"
];
meta = with lib; {
description = "A python module for reading, manipulating and writing genome data sets";
maintainers = with lib.maintainers; [ unode ];
license = lib.licenses.mit;
homepage = "https://pysam.readthedocs.io/";
maintainers = with maintainers; [ unode ];
license = licenses.mit;
platforms = [ "i686-linux" "x86_64-linux" ];
};
}

View File

@@ -36,6 +36,11 @@ buildPythonPackage rec {
})
];
postPatch = ''
# fix failing tests on systems with 32bit time_t
sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml
'';
propagatedBuildInputs = [ cryptography defusedxml future pyopenssl dateutil pytz requests six ];
checkInputs = [ mock pyasn1 pymongo pytest responses ];

View File

@@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pyscrypt";
version = "1.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "1sd5pd5fpcdnpp4h58kdnvkf0s3afh4ssfqky2ap6z0gy6ax3zds";
};
checkPhase = ''
${python.interpreter} tests/run-tests-hash.py
'';
meta = with lib; {
homepage = "https://github.com/ricmoo/pyscrypt/";
description = "Pure-Python implementation of Scrypt PBKDF and scrypt file format library";
license = licenses.mit;
maintainers = with maintainers; [ valodim ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "pytest-flask";
version = "0.15.0";
version = "0.15.1";
src = fetchPypi {
inherit pname version;
sha256 = "0jdzrib94vwfpl8524h34aqzqndh3h4xn706v32xh412c8dphx6q";
sha256 = "1ri3p3hibb1r2wcblpvs64s4jz40ci4jki4s2nf3xf7iz2wwbn6b";
};
doCheck = false;

View File

@@ -21,7 +21,10 @@ buildPythonPackage rec {
};
checkInputs = [ pytest pexpect ];
checkPhase = ''pytest -ra'';
checkPhase = ''
# test_suppresses_timeout_when_pdb_is_entered fails under heavy load
pytest -ra -k 'not test_suppresses_timeout_when_pdb_is_entered'
'';
meta = with lib;{
description = "py.test plugin to abort hanging tests";

View File

@@ -1,6 +1,8 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy38
, kerberos
, mock
, pytest
, requests
@@ -12,6 +14,7 @@
buildPythonPackage rec {
pname = "pywinrm";
version = "0.4.1";
disabled = isPy38;
src = fetchPypi {
inherit pname version;
@@ -19,13 +22,16 @@ buildPythonPackage rec {
};
checkInputs = [ mock pytest ];
propagatedBuildInputs = [ requests requests_ntlm six xmltodict ];
propagatedBuildInputs = [ requests requests_ntlm six kerberos xmltodict ];
meta = with lib; {
description = "Python library for Windows Remote Management";
homepage = https://github.com/diyan/pywinrm/;
homepage = "https://github.com/diyan/pywinrm";
license = licenses.mit;
maintainers = with maintainers; [ elasticdog ];
maintainers = with maintainers; [
elasticdog
kamadorueda
];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,119 @@
{ lib
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
, cython
, dill
, jsonschema
, numpy
, marshmallow
, marshmallow-polyfield
, matplotlib
, networkx
, ply
, psutil
, scipy
, sympy
# test requirements
, ddt
, hypothesis
, ipywidgets
, nbformat
, nbconvert
, pillow
, pydot
, python
, pygraphviz
, pylatexenc
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "qiskit-terra";
version = "0.12.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Qiskit";
repo = pname;
rev = version;
sha256 = "1yarfziy2w8n1d7zyyxykfs68608j8md4kwfyhbyc6wy483fk9sy";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [
dill
jsonschema
numpy
marshmallow
marshmallow-polyfield
matplotlib
networkx
ply
psutil
scipy
sympy
];
# *** Tests ***
checkInputs = [
ddt
hypothesis
ipywidgets
nbformat
nbconvert
pillow
pydot
pygraphviz
pylatexenc
pytestCheckHook
];
pythonImportsCheck = [
"qiskit"
"qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial"
];
dontUseSetuptoolsCheck = true; # can't find setup.py, so fails. tested by pytest
disabledTests = [
"test_long_name" # generated circuit images differ for some reason
"test_jupyter_jobs_pbars" # needs IBMQ provider package (qiskit-ibmq-provider), circular dependency
];
pytestFlagsArray = [
"--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency
];
# Moves tests to $PACKAGEDIR/test. They can't be run from /build because of finding
# cythonized modules and expecting to find some resource files in the test directory.
preCheck = ''
export PACKAGEDIR=$out/${python.sitePackages}
echo "Moving Qiskit test files to package directory"
cp -r $TMP/source/test $PACKAGEDIR
cp -r $TMP/source/examples $PACKAGEDIR
cp -r $TMP/source/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/
# run pytest from Nix's $out path
pushd $PACKAGEDIR
'';
postCheck = ''
rm -rf test
rm -rf examples
popd
'';
meta = with lib; {
description = "Provides the foundations for Qiskit.";
longDescription = ''
Allows the user to write quantum circuits easily, and takes care of the constraints of real hardware.
'';
homepage = "https://github.com/QISKit/qiskit-terra";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}

View File

@@ -2,11 +2,11 @@
buildPythonPackage rec {
pname = "QtAwesome";
version = "0.6.1";
version = "0.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "1w4im0hzx497binyx6a6awbyszk1bsz34prm4j72gl5kszkiq7yq";
sha256 = "1k9nn6z8lhaznas509h9cjy434haggz2n1mhs29bycmds716k7j8";
};
propagatedBuildInputs = [ qtpy six ];

View File

@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, numpy
, astropy
, astropy-healpix
@@ -24,6 +25,12 @@ buildPythonPackage rec {
nativeBuildInputs = [ astropy-helpers cython ];
# Fix tests
patches = [ (fetchpatch {
url = "https://github.com/astropy/reproject/pull/218/commits/4661e075137424813ed77f1ebcbc251fee1b8467.patch";
sha256 = "13g3h824pqn2lgypzg1b87vkd44y7m302lhw3kh4rfww1dkzhm9v";
}) ];
# Disable automatic update of the astropy-helper module
postPatch = ''
substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"

View File

@@ -1,7 +1,7 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, fetchurl
, cython
, enum34
@@ -11,19 +11,16 @@
, pytest
, python
, scipy
, sundials_3
, sundials
}:
buildPythonPackage rec {
pname = "scikits.odes";
version = "2.4.0-9-g93075ae";
version = "2.6.1";
# we fetch github instead of Pypi, as we want #104 and #105, which don't apply cleanly on 2.4.0
src = fetchFromGitHub {
owner = "bmcage";
repo = "odes";
rev = "93075ae25c409f572f13ca7207fada5706f73c73";
sha256 = "161rab7hy6r1a9xw1zby9xhnnmxi0zwdpzxfpjkw9651xn2k5xyw";
src = fetchPypi {
inherit pname version;
sha256 = "0kbf2n16h9s35x6pavlx6sff0pqr68i0x0609z92a4vadni32n6b";
};
nativeBuildInputs = [
@@ -33,7 +30,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
numpy
sundials_3
sundials
scipy
] ++ lib.optionals (!isPy3k) [ enum34 ];

View File

@@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, blas
, liblapack
, numpy
, scipy
, scs
# check inputs
, nose
}:
buildPythonPackage rec {
inherit (scs) pname version;
src = fetchFromGitHub {
owner = "bodono";
repo = "scs-python";
rev = "f02abdc0e2e0a5851464e30f6766ccdbb19d73f0"; # need to choose commit manually, untagged
sha256 = "174b5s7cwgrn1m55jlrszdl403zhpzc4yl9acs6kjv9slmg1mmjr";
};
preConfigure = ''
rm -r scs
ln -s ${scs.src} scs
'';
buildInputs = [
liblapack
blas
];
propagatedBuildInputs = [
numpy
scipy
];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [ "scs" ];
meta = with lib; {
description = "Python interface for SCS: Splitting Conic Solver";
longDescription = ''
Solves convex cone programs via operator splitting.
Can solve: linear programs (LPs), second-order cone programs (SOCPs), semidefinite programs (SDPs),
exponential cone programs (ECPs), and power cone programs (PCPs), or problems with any combination of those cones.
'';
homepage = "https://github.com/cvxgrp/scs"; # upstream C package
downloadPage = "https://github.com/bodono/scs-python";
license = licenses.gpl3;
maintainers = with maintainers; [ drewrisinger ];
};
}

View File

@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, pandas
, matplotlib
}:
buildPythonPackage rec {
pname = "seaborn";
version = "0.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "da33aa8c20a9a342ce73831d02831a10413f54a05471c7f31edf34f225d456ae";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ pandas matplotlib ];
checkPhase = ''
nosetests -v
'';
# Computationally very demanding tests
doCheck = false;
meta = {
description = "Statisitical data visualization";
homepage = "http://stanford.edu/~mwaskom/software/seaborn/";
license = with lib.licenses; [ bsd3 ];
maintainers = [ ];
};
}

View File

@@ -2,13 +2,13 @@
buildPythonPackage rec {
pname = "swagger-spec-validator";
version = "2.4.3";
version = "2.5.0";
src = fetchFromGitHub {
owner = "Yelp";
repo = "swagger_spec_validator";
rev = "v" + version;
sha256 = "02f8amc6iq2clxxmrz8hirbb57sizaxijp0higqy16shk63ibalw";
sha256 = "0qlkiyncdh7cdyjvnwjpv9i7y75ghwnpyqkkpfaa8hg698na13pw";
};
checkInputs = [

View File

@@ -12,12 +12,12 @@
buildPythonPackage rec {
pname = "tablib";
version = "1.0.0";
version = "1.1.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0ddvcgycv5m7q4rn5bch9qnhxjgn7192z537b1wzpmwd5s074cgz";
sha256 = "19wvx40lgm1d1zqscznwjklchczcmv07cqfigalmpj7i7ym0j6ad";
};
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];