nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6
7 # reverse dependencies
8 mashumaro,
9 pydantic,
10}:
11
12buildPythonPackage rec {
13 pname = "typing-extensions";
14 version = "4.15.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "python";
19 repo = "typing_extensions";
20 tag = version;
21 hash = "sha256-3oAlwvNSJ7NhPiHekh4SJI99cPFh29KCCR9314QzsvQ=";
22 };
23
24 build-system = [ flit-core ];
25
26 pythonImportsCheck = [ "typing_extensions" ];
27
28 passthru.tests = {
29 inherit mashumaro pydantic;
30 };
31
32 meta = {
33 description = "Backported and Experimental Type Hints for Python";
34 changelog = "https://github.com/python/typing_extensions/blob/${version}/CHANGELOG.md";
35 homepage = "https://github.com/python/typing";
36 license = lib.licenses.psfl;
37 maintainers = with lib.maintainers; [ pmiddend ];
38 };
39}