about summary refs log tree commit diff
path: root/pkgs/development/python-modules/eval-type-backport/default.nix
blob: d74d24b58ac0eb387ba5024dc2c661359c69ba91 (plain) (blame)
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,
  setuptools,
  setuptools-scm,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "eval-type-backport";
  version = "0.1.3";

  src = fetchFromGitHub {
    owner = "alexmojaki";
    repo = "eval_type_backport";
    rev = "refs/tags/v${version}";
    hash = "sha256-EiYJQUnK10lqjyJ89KacbZ+ZZuOmkRQ9bqTFQFN2iMA=";
  };

  nativeBuildInputs = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Like `typing._eval_type`, but lets older Python versions use newer typing features";
    homepage = "https://github.com/alexmojaki/eval_type_backport";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ perchun ];
  };
}