python2Packages.typing: we no longer need it for Python 3

This commit is contained in:
Frederik Rietdijk 2021-03-25 08:23:40 +01:00
parent c57d51f1ab
commit 3904d4d477
25 changed files with 40 additions and 28 deletions

View File

@ -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
}: }:

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder { lib, buildPythonPackage, fetchPypi, pythonOlder
, typing, aiohttp , typing ? null, aiohttp
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -12,7 +12,7 @@
, six , six
, sphinx , sphinx
, toolz , toolz
, typing , typing ? null
, vega_datasets , vega_datasets
}: }:

View File

@ -12,7 +12,7 @@
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, toml , toml
, typing , typing ? null
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -5,7 +5,7 @@
, isPy27 , isPy27
, aenum , aenum
, wrapt , wrapt
, typing , typing ? null
, pyserial , pyserial
, nose , nose
, mock , mock

View File

@ -7,7 +7,7 @@
, click , click
, future , future
, pathlib2 , pathlib2
, typing , typing ? null
, lxml , lxml
, xlwt , xlwt
, xlrd , xlrd

View File

@ -15,7 +15,7 @@
, pyyaml , pyyaml
, setuptools , setuptools
, six , six
, typing , typing ? null
, watchdog , watchdog
, wheel , wheel
}: }:

View File

@ -4,7 +4,7 @@
lib, lib,
nose, nose,
six, six,
typing, typing ? null,
isPy27, isPy27,
}: }:

View File

@ -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";

View File

@ -26,7 +26,7 @@
, six , six
, swagger-ui-bundle , swagger-ui-bundle
, testfixtures , testfixtures
, typing , typing ? null
, ujson , ujson
}: }:

View File

@ -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";

View File

@ -4,7 +4,7 @@
, pythonOlder , pythonOlder
, decorator , decorator
, requests , requests
, typing , typing ? null
, configparser , configparser
, click , click
, freezegun , freezegun

View File

@ -11,7 +11,7 @@
, shortuuid , shortuuid
, six , six
, tox , tox
, typing , typing ? null
, vobject , vobject
, werkzeug , werkzeug
}: }:

View File

@ -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 = ''

View File

@ -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 {

View File

@ -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

View File

@ -1,5 +1,5 @@
{ buildPythonPackage, lib, fetchFromGitHub, pytest { buildPythonPackage, lib, fetchFromGitHub, pytest
, typing, funcsigs, pythonOlder , typing ? null, funcsigs ? null, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -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";

View File

@ -4,8 +4,8 @@
, setuptools_scm , setuptools_scm
, toml , toml
, importlib-metadata , importlib-metadata
, typing , typing ? null
, singledispatch , singledispatch ? null
, pythonOlder , pythonOlder
, python , python
}: }:

View File

@ -7,7 +7,7 @@
, pytest-mock , pytest-mock
, pytestCheckHook , pytestCheckHook
, tomlkit , tomlkit
, typing , typing ? null
, virtualenv , virtualenv
}: }:

View File

@ -26,7 +26,7 @@
, sphinxcontrib-qthelp , sphinxcontrib-qthelp
, sphinxcontrib-serializinghtml , sphinxcontrib-serializinghtml
, sphinxcontrib-websupport , sphinxcontrib-websupport
, typing , typing ? null
, setuptools , setuptools
, packaging , packaging
}: }:

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 { lib, buildPythonPackage, fetchPypi, isPy27
, enum34, functools32, typing , enum34, functools32, typing ? null
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@ -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

View File

@ -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 { };

View File

@ -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 { };