about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyannotate/default.nix
blob: 6c81a3f081b8f394cba561b391ce0490b47d96c6 (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
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchPypi,
  mypy-extensions,
  pytestCheckHook,
  pythonOlder,
  six,
}:

buildPythonPackage rec {
  pname = "pyannotate";
  version = "1.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-BO1YBLqzgVPVmB/JLYPc9qIog0U3aFYfBX53flwFdZk=";
  };

  propagatedBuildInputs = [
    six
    mypy-extensions
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "pyannotate_runtime"
    "pyannotate_tools"
  ];

  meta = with lib; {
    description = "Auto-generate PEP-484 annotations";
    mainProgram = "pyannotate";
    homepage = "https://github.com/dropbox/pyannotate";
    license = licenses.mit;
    maintainers = [ ];
  };
}