mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
pythonPackages: move python 2 only expressions to python2-packages.nix
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, eventlet
|
||||
, trollius
|
||||
, trollius ? null
|
||||
, mock
|
||||
, python
|
||||
}:
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
, azure-common
|
||||
, azure-storage-common
|
||||
, azure-cosmosdb-nspkg
|
||||
, futures
|
||||
, futures ? null
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, requests
|
||||
, adal
|
||||
, azure-common
|
||||
, futures
|
||||
, futures ? null
|
||||
, pathlib2
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
, azure-common
|
||||
, azure-core
|
||||
, msrestazure
|
||||
, futures
|
||||
, futures ? null
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
, azure-storage-common
|
||||
, msrest
|
||||
, isPy3k
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
, azure-core
|
||||
, cryptography
|
||||
, msrest
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, azure-common
|
||||
, azure-storage-common
|
||||
, isPy3k
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, fetchPypi
|
||||
, python
|
||||
, azure-common
|
||||
, futures
|
||||
, futures ? null
|
||||
, dateutil
|
||||
, requests
|
||||
, isPy3k
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
, cryptography
|
||||
, isPy27
|
||||
, isPy3k
|
||||
, funcsigs
|
||||
, pycryptopp
|
||||
, funcsigs ? null
|
||||
, pycryptopp ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231, progressbar33, mock }:
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231 ? null, progressbar33, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bitmath";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, futures
|
||||
, futures ? null
|
||||
, isPy27
|
||||
, isPyPy
|
||||
, jinja2
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, botocore
|
||||
, jmespath
|
||||
, s3transfer
|
||||
, futures
|
||||
, futures ? null
|
||||
, docutils
|
||||
, nose
|
||||
, mock
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python, pythonOlder
|
||||
, cython
|
||||
, eventlet
|
||||
, futures
|
||||
, futures ? null
|
||||
, iana-etc
|
||||
, geomet
|
||||
, libev
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, pytest
|
||||
, click
|
||||
, isPy3k
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, futures
|
||||
, futures ? null
|
||||
, docloud
|
||||
, requests
|
||||
}:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
, testtools
|
||||
, isPy3k
|
||||
, nose
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
, six
|
||||
, appdirs
|
||||
, scandir
|
||||
, backports_os
|
||||
, backports_os ? null
|
||||
, typing
|
||||
, pytz
|
||||
, enum34
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
, pkg-config
|
||||
, gtk3
|
||||
, gobject-introspection
|
||||
, pygtk
|
||||
, pygobject3
|
||||
, goocanvas2
|
||||
, isPy3k
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
, grpc
|
||||
, six
|
||||
, protobuf
|
||||
, enum34
|
||||
, futures
|
||||
, enum34 ? null
|
||||
, futures ? null
|
||||
, isPy27
|
||||
, pkg-config
|
||||
, cython
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
, numpy
|
||||
, isPy3k
|
||||
, ffmpeg_3
|
||||
, futures
|
||||
, futures ? null
|
||||
, enum34
|
||||
}:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
, ipykernel
|
||||
, tornado
|
||||
, isPy3k
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
, isPyPy
|
||||
, pycrypto
|
||||
, requests
|
||||
, singledispatch
|
||||
, futures
|
||||
, singledispatch ? null
|
||||
, futures ? null
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
, requests_oauthlib
|
||||
, isodate
|
||||
, certifi
|
||||
, enum34
|
||||
, enum34 ? null
|
||||
, typing
|
||||
, aiohttp
|
||||
, aiodns
|
||||
, pytest
|
||||
, httpretty
|
||||
, mock
|
||||
, futures
|
||||
, futures ? null
|
||||
, trio
|
||||
}:
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, futures
|
||||
, futures ? null
|
||||
, gevent
|
||||
, mock
|
||||
, pytest
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
, requests
|
||||
, entrypoints
|
||||
, tenacity
|
||||
, futures
|
||||
, futures ? null
|
||||
, black
|
||||
, backports_tempfile
|
||||
, isPy27
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
, buildPythonPackage
|
||||
, isPy37
|
||||
, protobuf
|
||||
, google-apputils
|
||||
, google-apputils ? null
|
||||
, six
|
||||
, pyext
|
||||
, libcxx
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, nose
|
||||
, msgpack
|
||||
, greenlet
|
||||
, trollius
|
||||
, trollius ? null
|
||||
, pythonOlder
|
||||
, isPyPy
|
||||
, pytestrunner
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
, psutil
|
||||
, pytest
|
||||
, setuptools_scm
|
||||
, subprocess32
|
||||
, subprocess32 ? null
|
||||
, toml
|
||||
, zc_lockfile
|
||||
}:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, pytestCheckHook, mock, pytestcov, coverage
|
||||
, future, futures, ujson, isPy38
|
||||
, future, futures ? null, ujson, isPy38
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -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 ? ["*"]
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, ruamel_base
|
||||
, ruamel_ordereddict
|
||||
, ruamel_yaml_clib
|
||||
, ruamel_ordereddict ? null
|
||||
, ruamel_yaml_clib ? null
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchhg
|
||||
, ruamel_base
|
||||
, ruamel_ordereddict
|
||||
, ruamel_ordereddict ? null
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
, wheel
|
||||
, unittest2
|
||||
, botocore
|
||||
, futures
|
||||
, futures ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35, fetchpatch
|
||||
, mock
|
||||
, pysqlite
|
||||
, pysqlite ? null
|
||||
, pytestCheckHook
|
||||
, pytest_xdist
|
||||
}:
|
||||
|
||||
@@ -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
|
||||
}:
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
, isPy3k
|
||||
, numpy
|
||||
, imagecodecs-lite
|
||||
, enum34
|
||||
, futures
|
||||
, pathlib
|
||||
, enum34 ? null
|
||||
, futures ? null
|
||||
, pathlib ? null
|
||||
, pytest
|
||||
}:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
, backports_ssl_match_hostname
|
||||
, certifi
|
||||
, singledispatch
|
||||
, futures
|
||||
, futures ? null
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
, backports_ssl_match_hostname
|
||||
, certifi
|
||||
, singledispatch
|
||||
, futures
|
||||
, futures ? null
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, cryptography
|
||||
, futures
|
||||
, futures ? null
|
||||
, pytest
|
||||
, pyopenssl
|
||||
, service-identity
|
||||
|
||||
@@ -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
|
||||
}:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
, cssselect
|
||||
, dateutil
|
||||
, feedparser
|
||||
, futures
|
||||
, futures ? null
|
||||
, gdata
|
||||
, gnupg
|
||||
, google-api-python-client
|
||||
|
||||
Reference in New Issue
Block a user