summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/basedtyping/default.nix
blob: cec4ffae28e01cc534a5cd37accff720e12b2dd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nix-update-script,

  # build-system
  poetry-core,

  # propagates
  typing-extensions,

  # tests
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "basedtyping";
  version = "0.1.10";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "KotlinIsland";
    repo = "basedtyping";
    tag = "v${finalAttrs.version}";
    hash = "sha256-IpIMO75jqJDzDgRPVEi6g7AprGeBeKbVH99XPDYUzTM=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    typing-extensions
  ];

  pythonImportsCheck = [
    "basedtyping"
    "basedtyping.runtime_only"
    "basedtyping.transformer"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Utilities for basedmypy";
    homepage = "https://github.com/KotlinIsland/basedtyping";
    changelog = "https://github.com/KotlinIsland/basedtyping/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ PerchunPak ];
  };
})