summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/typing-utils/default.nix
blob: fef5f3bdc435727937b388f0d0b82c76d95d0f68 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "typing-utils";
  version = "0.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bojiang";
    repo = "typing_utils";
    tag = "v${version}";
    hash = "sha256-eXVGpe1wCH1JG+7ZP0evlxhw189GrrRzTwNDCALn3JI=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "typing_utils" ];

  meta = {
    description = "Utils to inspect Python type annotations";
    homepage = "https://github.com/bojiang/typing_utils";
    changelog = "https://github.com/bojiang/typing_utils/releases/tag/${src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ wulpine ];
  };
}