about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pandas-stubs/default.nix
blob: c568476977690ea521a0de2676899ad1eb485044 (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
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, typing-extensions
, mypy
}:

buildPythonPackage rec {
  pname = "pandas-stubs";
  version = "1.2.0.39";

  disabled = isPy27;

  # Use GitHub source since PyPi source does not include tests
  src = fetchFromGitHub {
    owner = "VirtusLab";
    repo = pname;
    rev = "2bd932777d1050ea8f86c527266a4cd205aa15b1";
    sha256 = "m2McU53NNvRwnWKN9GL8dW1eCGKbTi0471szRQwZu1Q=";
  };

  propagatedBuildInputs = [
    typing-extensions
  ];

  pythonImportsCheck = [ "pandas" ];
  checkInputs = [ mypy ];
  checkPhase = ''
    mypy --config-file mypy.ini third_party/3/pandas tests/snippets
  '';

  meta = with lib; {
    description = "Type annotations for Pandas";
    homepage = "https://github.com/VirtusLab/pandas-stubs";
    license = licenses.mit;
    maintainers = [ maintainers.malo ];
  };
}