nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 937 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit-core 5, python 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "typing-extensions"; 11 version = "4.1.1"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 pname = "typing_extensions"; 18 inherit version; 19 hash = "sha256-GpRi3MM0enmx8cAnH7556ERYC7WYuvoe0gi5TaPNzUI="; 20 }; 21 22 nativeBuildInputs = [ 23 flit-core 24 ]; 25 26 postPatch = '' 27 # Remove metadata for README which are outdated 28 sed -i -e '11,24d' pyproject.toml 29 ''; 30 31 # Tests are not part of PyPI releases. GitHub source can't be used 32 # as it ends with an infinite recursion 33 doCheck = false; 34 35 pythonImportsCheck = [ 36 "typing_extensions" 37 ]; 38 39 meta = with lib; { 40 description = "Backported and Experimental Type Hints for Python 3.5+"; 41 homepage = "https://github.com/python/typing"; 42 license = licenses.psfl; 43 maintainers = with maintainers; [ pmiddend ]; 44 }; 45}