mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.typing-extensions: init at 3.6.5 (#40983)
This commit is contained in:
parent
1499c812a1
commit
1868fa92a2
@ -0,0 +1,31 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, python, typing }:
|
||||
let
|
||||
testDir = if isPy3k then "src_py3" else "src_py2";
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "typing_extensions";
|
||||
version = "3.6.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "09xxykw8mk30r0g33r2gy5qlqw3sqj5vkp6h7nh0flp59hxqw2hw";
|
||||
};
|
||||
|
||||
checkInputs = lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
# Error for Python3.6: ImportError: cannot import name 'ann_module'
|
||||
# See https://github.com/python/typing/pull/280
|
||||
doCheck = pythonOlder "3.6";
|
||||
|
||||
checkPhase = ''
|
||||
cd ${testDir}
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Backported and Experimental Type Hints for Python 3.5+";
|
||||
homepage = https://github.com/python/typing;
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ pmiddend ];
|
||||
};
|
||||
}
|
@ -12435,6 +12435,8 @@ in {
|
||||
|
||||
typing = callPackage ../development/python-modules/typing { };
|
||||
|
||||
typing-extensions = callPackage ../development/python-modules/typing-extensions { };
|
||||
|
||||
typeguard = callPackage ../development/python-modules/typeguard { };
|
||||
|
||||
ruamel_yaml = buildPythonPackage rec {
|
||||
|
Loading…
Reference in New Issue
Block a user