python2Packages.typing: we no longer need it for Python 3
This commit is contained in:
parent
c57d51f1ab
commit
3904d4d477
@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
, isPy27, isPyPy, python, pycares, typing
|
, isPy27, isPyPy, python, pycares, typing ? null
|
||||||
, trollius ? null
|
, trollius ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
, typing, aiohttp
|
, typing ? null, aiohttp
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
, six
|
, six
|
||||||
, sphinx
|
, sphinx
|
||||||
, toolz
|
, toolz
|
||||||
, typing
|
, typing ? null
|
||||||
, vega_datasets
|
, vega_datasets
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, toml
|
, toml
|
||||||
, typing
|
, typing ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, isPy27
|
, isPy27
|
||||||
, aenum
|
, aenum
|
||||||
, wrapt
|
, wrapt
|
||||||
, typing
|
, typing ? null
|
||||||
, pyserial
|
, pyserial
|
||||||
, nose
|
, nose
|
||||||
, mock
|
, mock
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
, click
|
, click
|
||||||
, future
|
, future
|
||||||
, pathlib2
|
, pathlib2
|
||||||
, typing
|
, typing ? null
|
||||||
, lxml
|
, lxml
|
||||||
, xlwt
|
, xlwt
|
||||||
, xlrd
|
, xlrd
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
, pyyaml
|
, pyyaml
|
||||||
, setuptools
|
, setuptools
|
||||||
, six
|
, six
|
||||||
, typing
|
, typing ? null
|
||||||
, watchdog
|
, watchdog
|
||||||
, wheel
|
, wheel
|
||||||
}:
|
}:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
lib,
|
lib,
|
||||||
nose,
|
nose,
|
||||||
six,
|
six,
|
||||||
typing,
|
typing ? null,
|
||||||
isPy27,
|
isPy27,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi
|
||||||
, isPy27, pythonAtLeast
|
, isPy27, pythonAtLeast
|
||||||
, pylev, pastel, typing, enum34, crashtest }:
|
, pylev, pastel, typing ? null, enum34 ? null, crashtest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "clikit";
|
pname = "clikit";
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
, six
|
, six
|
||||||
, swagger-ui-bundle
|
, swagger-ui-bundle
|
||||||
, testfixtures
|
, testfixtures
|
||||||
, typing
|
, typing ? null
|
||||||
, ujson
|
, ujson
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, blessings, mock, nose, pyte, wcwidth, typing }:
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, blessings, mock, nose, pyte, wcwidth, typing ? null}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "curtsies";
|
pname = "curtsies";
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
, pythonOlder
|
, pythonOlder
|
||||||
, decorator
|
, decorator
|
||||||
, requests
|
, requests
|
||||||
, typing
|
, typing ? null
|
||||||
, configparser
|
, configparser
|
||||||
, click
|
, click
|
||||||
, freezegun
|
, freezegun
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
, shortuuid
|
, shortuuid
|
||||||
, six
|
, six
|
||||||
, tox
|
, tox
|
||||||
, typing
|
, typing ? null
|
||||||
, vobject
|
, vobject
|
||||||
, werkzeug
|
, werkzeug
|
||||||
}:
|
}:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, pytest, pysha3, pycrypto,
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder, pytest, pysha3, pycrypto
|
||||||
pycryptodome }:
|
, pycryptodome
|
||||||
|
, eth-utils
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "eth-hash";
|
pname = "eth-hash";
|
||||||
@ -12,7 +14,12 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pysha3 pycrypto pycryptodome ];
|
propagatedBuildInputs = [
|
||||||
|
eth-utils
|
||||||
|
pysha3
|
||||||
|
pycrypto
|
||||||
|
pycryptodome
|
||||||
|
];
|
||||||
|
|
||||||
# setuptools-markdown uses pypandoc which is broken at the moment
|
# setuptools-markdown uses pypandoc which is broken at the moment
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
, mock, pytest, pytestrunner
|
, mock, pytest, pytestrunner
|
||||||
, configparser, enum34, mccabe, pycodestyle, pyflakes, functools32, typing, importlib-metadata
|
, configparser, enum34, mccabe, pycodestyle, pyflakes, functools32, typing ? null, importlib-metadata
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, six
|
, six
|
||||||
, appdirs
|
, appdirs
|
||||||
, scandir
|
, scandir ? null
|
||||||
, backports_os ? null
|
, backports_os ? null
|
||||||
, typing
|
, typing ? null
|
||||||
, pytz
|
, pytz
|
||||||
, enum34
|
, enum34
|
||||||
, pyftpdlib
|
, pyftpdlib
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ buildPythonPackage, lib, fetchFromGitHub, pytest
|
{ buildPythonPackage, lib, fetchFromGitHub, pytest
|
||||||
, typing, funcsigs, pythonOlder
|
, typing ? null, funcsigs ? null, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy27, idna, typing }:
|
{ lib, buildPythonPackage, fetchPypi, isPy27, idna, typing ? null }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hyperlink";
|
pname = "hyperlink";
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, toml
|
, toml
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, typing
|
, typing ? null
|
||||||
, singledispatch
|
, singledispatch ? null
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, python
|
, python
|
||||||
}:
|
}:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, tomlkit
|
, tomlkit
|
||||||
, typing
|
, typing ? null
|
||||||
, virtualenv
|
, virtualenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
, sphinxcontrib-qthelp
|
, sphinxcontrib-qthelp
|
||||||
, sphinxcontrib-serializinghtml
|
, sphinxcontrib-serializinghtml
|
||||||
, sphinxcontrib-websupport
|
, sphinxcontrib-websupport
|
||||||
, typing
|
, typing ? null
|
||||||
, setuptools
|
, setuptools
|
||||||
, packaging
|
, packaging
|
||||||
}:
|
}:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
||||||
, enum34, functools32, typing
|
, enum34, functools32, typing ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, python }:
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, python
|
||||||
|
, pythonAtLeast }:
|
||||||
|
|
||||||
let
|
let
|
||||||
testDir = if isPy3k then "src" else "python2";
|
testDir = if isPy3k then "src" else "python2";
|
||||||
@ -12,6 +13,8 @@ in buildPythonPackage rec {
|
|||||||
sha256 = "1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9";
|
sha256 = "1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
disabled = pythonAtLeast "3.5";
|
||||||
|
|
||||||
# Error for Python3.6: ImportError: cannot import name 'ann_module'
|
# Error for Python3.6: ImportError: cannot import name 'ann_module'
|
||||||
# See https://github.com/python/typing/pull/280
|
# See https://github.com/python/typing/pull/280
|
||||||
# Also, don't bother on PyPy: AssertionError: TypeError not raised
|
# Also, don't bother on PyPy: AssertionError: TypeError not raised
|
||||||
|
@ -7906,7 +7906,7 @@ in {
|
|||||||
|
|
||||||
typesystem = callPackage ../development/python-modules/typesystem { };
|
typesystem = callPackage ../development/python-modules/typesystem { };
|
||||||
|
|
||||||
typing = callPackage ../development/python-modules/typing { };
|
typing = null;
|
||||||
|
|
||||||
typing-extensions = callPackage ../development/python-modules/typing-extensions { };
|
typing-extensions = callPackage ../development/python-modules/typing-extensions { };
|
||||||
|
|
||||||
|
@ -599,6 +599,8 @@ with self; with super; {
|
|||||||
|
|
||||||
TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };
|
TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };
|
||||||
|
|
||||||
|
typing = callPackage ../development/python-modules/typing { };
|
||||||
|
|
||||||
ujson = callPackage ../development/python-modules/ujson/2.nix { };
|
ujson = callPackage ../development/python-modules/ujson/2.nix { };
|
||||||
|
|
||||||
umemcache = callPackage ../development/python-modules/umemcache { };
|
umemcache = callPackage ../development/python-modules/umemcache { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user