pythonPackages: move python 2 only expressions to python2-packages.nix

This commit is contained in:
Frederik Rietdijk
2021-03-24 17:45:56 +01:00
parent faca299129
commit 1e89d4cccd
50 changed files with 498 additions and 506 deletions

View File

@@ -1,5 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, isPy27, isPyPy, python, pycares, typing, trollius }:
, isPy27, isPyPy, python, pycares, typing
, trollius ? null
}:
buildPythonPackage rec {
pname = "aiodns";

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, eventlet
, trollius
, trollius ? null
, mock
, python
}:

View File

@@ -1,5 +1,6 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi, trollius, futures,
six, txaio, twisted, zope_interface, cffi,
trollius ? null, futures ? null,
mock, pytest, cryptography, pynacl
}:
buildPythonPackage rec {

View File

@@ -5,7 +5,7 @@
, azure-common
, azure-storage-common
, azure-cosmosdb-nspkg
, futures
, futures ? null
, isPy3k
}:

View File

@@ -4,7 +4,7 @@
, requests
, adal
, azure-common
, futures
, futures ? null
, pathlib2
, isPy3k
}:

View File

@@ -5,7 +5,7 @@
, azure-common
, azure-core
, msrestazure
, futures
, futures ? null
, isPy3k
}:

View File

@@ -6,7 +6,7 @@
, azure-storage-common
, msrest
, isPy3k
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -7,7 +7,7 @@
, azure-core
, cryptography
, msrest
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -4,7 +4,7 @@
, azure-common
, azure-storage-common
, isPy3k
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -3,7 +3,7 @@
, fetchPypi
, python
, azure-common
, futures
, futures ? null
, dateutil
, requests
, isPy3k

View File

@@ -15,8 +15,8 @@
, cryptography
, isPy27
, isPy3k
, funcsigs
, pycryptopp
, funcsigs ? null
, pycryptopp ? null
}:
buildPythonPackage rec {

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231, progressbar33, mock }:
{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231 ? null, progressbar33, mock }:
buildPythonPackage rec {
pname = "bitmath";

View File

@@ -1,6 +1,6 @@
{ buildPythonPackage
, fetchPypi
, futures
, futures ? null
, isPy27
, isPyPy
, jinja2

View File

@@ -4,7 +4,7 @@
, botocore
, jmespath
, s3transfer
, futures
, futures ? null
, docutils
, nose
, mock

View File

@@ -1,7 +1,7 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pythonOlder
, cython
, eventlet
, futures
, futures ? null
, iana-etc
, geomet
, libev

View File

@@ -4,7 +4,7 @@
, pytest
, click
, isPy3k
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro ? null, futures ? null, enum34 ? null }:
buildPythonPackage rec {
version = "1.6.0";

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, django, futures, mock, jinja2, jsmin, slimit }:
, django, futures ? null, mock ? null, jinja2, jsmin, slimit }:
buildPythonPackage rec {
pname = "django-pipeline";

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, isPy27
, futures
, futures ? null
, docloud
, requests
}:

View File

@@ -8,7 +8,7 @@
, testtools
, isPy3k
, nose
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -5,7 +5,7 @@
, six
, appdirs
, scandir
, backports_os
, backports_os ? null
, typing
, pytz
, enum34

View File

@@ -4,7 +4,6 @@
, pkg-config
, gtk3
, gobject-introspection
, pygtk
, pygobject3
, goocanvas2
, isPy3k

View File

@@ -3,8 +3,8 @@
, grpc
, six
, protobuf
, enum34
, futures
, enum34 ? null
, futures ? null
, isPy27
, pkg-config
, cython

View File

@@ -10,7 +10,7 @@
, numpy
, isPy3k
, ffmpeg_3
, futures
, futures ? null
, enum34
}:

View File

@@ -11,7 +11,7 @@
, ipykernel
, tornado
, isPy3k
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -4,8 +4,8 @@
, isPyPy
, pycrypto
, requests
, singledispatch
, futures
, singledispatch ? null
, futures ? null
, isPy27
}:

View File

@@ -6,14 +6,14 @@
, requests_oauthlib
, isodate
, certifi
, enum34
, enum34 ? null
, typing
, aiohttp
, aiodns
, pytest
, httpretty
, mock
, futures
, futures ? null
, trio
}:

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, isPy27
, futures
, futures ? null
, gevent
, mock
, pytest

View File

@@ -14,7 +14,7 @@
, requests
, entrypoints
, tenacity
, futures
, futures ? null
, black
, backports_tempfile
, isPy27

View File

@@ -6,9 +6,7 @@
, pytest-flake8
, glibcLocales
, packaging
, isPy27
, isPy38
, backports_os
, importlib-metadata
, fetchpatch
}:
@@ -26,8 +24,7 @@ buildPythonPackage rec {
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
importlib-metadata
] ++ lib.optional isPy27 backports_os
;
];
LC_ALL = "en_US.UTF-8";

View File

@@ -5,7 +5,7 @@
, buildPythonPackage
, isPy37
, protobuf
, google-apputils
, google-apputils ? null
, six
, pyext
, libcxx

View File

@@ -1,4 +1,20 @@
{ buildPythonPackage, fetchPypi, lib, vcversioner, pytestrunner, mock, pytest, pytest-asyncio, pytest-trio, twisted, zipp, pyparsing, pyhamcrest, futures, attrs, isPy27 }:
{ buildPythonPackage
, fetchPypi
, lib
, vcversioner
, pytestrunner
, mock
, pytest
, pytest-asyncio
, pytest-trio
, twisted
, zipp ? null
, pyparsing ? null
, pyhamcrest
, futures ? null
, attrs ? null
, isPy27
}:
buildPythonPackage rec {
pname = "pyee";

View File

@@ -4,7 +4,7 @@
, nose
, msgpack
, greenlet
, trollius
, trollius ? null
, pythonOlder
, isPyPy
, pytestrunner

View File

@@ -6,7 +6,7 @@
, psutil
, pytest
, setuptools_scm
, subprocess32
, subprocess32 ? null
, toml
, zc_lockfile
}:

View File

@@ -1,6 +1,6 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, pytestCheckHook, mock, pytestcov, coverage
, future, futures, ujson, isPy38
, future, futures ? null, ujson, isPy38
}:
buildPythonPackage rec {

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
, backports_functools_lru_cache ? null, configparser ? null, futures ? null, future, jedi, pluggy, python-jsonrpc-server, flake8
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson, flaky
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
providers ? ["*"]

View File

@@ -2,8 +2,8 @@
, buildPythonPackage
, fetchPypi
, ruamel_base
, ruamel_ordereddict
, ruamel_yaml_clib
, ruamel_ordereddict ? null
, ruamel_yaml_clib ? null
, isPy3k
, isPyPy
}:

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, fetchhg
, ruamel_base
, ruamel_ordereddict
, ruamel_ordereddict ? null
, isPy3k
}:

View File

@@ -9,7 +9,7 @@
, wheel
, unittest2
, botocore
, futures
, futures ? null
}:
buildPythonPackage rec {

View File

@@ -1,6 +1,6 @@
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35, fetchpatch
, mock
, pysqlite
, pysqlite ? null
, pytestCheckHook
, pytest_xdist
}:

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, isPy3k
, pbr, six, futures, monotonic, typing, setuptools_scm
, pbr, six, futures ? null, monotonic ? null, typing ? null, setuptools_scm
, pytest, sphinx, tornado, typeguard
}:

View File

@@ -5,9 +5,9 @@
, isPy3k
, numpy
, imagecodecs-lite
, enum34
, futures
, pathlib
, enum34 ? null
, futures ? null
, pathlib ? null
, pytest
}:

View File

@@ -6,7 +6,7 @@
, backports_ssl_match_hostname
, certifi
, singledispatch
, futures
, futures ? null
, isPy27
}:

View File

@@ -6,7 +6,7 @@
, backports_ssl_match_hostname
, certifi
, singledispatch
, futures
, futures ? null
, isPy27
}:

View File

@@ -3,7 +3,7 @@
, fetchPypi
, isPy3k
, cryptography
, futures
, futures ? null
, pytest
, pyopenssl
, service-identity

View File

@@ -1,5 +1,5 @@
{ lib, fetchFromGitHub, buildPythonPackage, isPy27
, awkward0, backports_lzma, cachetools, lz4, pandas
, awkward0, backports_lzma ? null, cachetools, lz4, pandas
, pytestCheckHook, pkgconfig, mock
, numpy, requests, uproot3-methods, xxhash, zstandard
}:

View File

@@ -3,7 +3,7 @@
, cssselect
, dateutil
, feedparser
, futures
, futures ? null
, gdata
, gnupg
, google-api-python-client