1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 nix-update-script,
6 pythonOlder,
7
8 # build-system
9 poetry-core,
10
11 # propagates
12 typing-extensions,
13
14 # tests
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "basedtyping";
20 version = "0.1.10";
21 pyproject = true;
22
23 disabled = pythonOlder "3.9";
24
25 src = fetchFromGitHub {
26 owner = "KotlinIsland";
27 repo = "basedtyping";
28 tag = "v${version}";
29 hash = "sha256-IpIMO75jqJDzDgRPVEi6g7AprGeBeKbVH99XPDYUzTM=";
30 };
31
32 build-system = [
33 poetry-core
34 ];
35
36 dependencies = [
37 typing-extensions
38 ];
39
40 pythonImportsCheck = [
41 "basedtyping"
42 "basedtyping.runtime_only"
43 "basedtyping.transformer"
44 ];
45
46 nativeCheckInputs = [
47 pytestCheckHook
48 ];
49
50 passthru.updateScript = nix-update-script { };
51
52 meta = {
53 description = "Utilities for basedmypy";
54 homepage = "https://github.com/KotlinIsland/basedtyping";
55 changelog = "https://github.com/KotlinIsland/basedtyping/releases/tag/${src.tag}";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ perchun ];
58 };
59}