about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/future-typing/default.nix
blob: 04d4af30e07a475d5b71c7a51612432f374db3ff (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
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, typing-extensions
}:

buildPythonPackage rec {
  pname = "future-typing";
  version = "0.4.1";
  format = "setuptools";

  src = fetchPypi {
    pname = "future_typing";
    inherit version;
    sha256 = "65fdc5034a95db212790fee5e977fb0a2df8deb60dccf3bac17d6d2b1a9bbacd";
  };

  doCheck = false; # No tests in pypi source. Did not get tests from GitHub source to work.

  pythonImportsCheck = [ "future_typing" ];

  meta = with lib; {
    description = "Use generic type hints and new union syntax `|` with python 3.6+";
    mainProgram = "future_typing";
    homepage = "https://github.com/PrettyWood/future-typing";
    license = licenses.mit;
    maintainers = with maintainers; [ kfollesdal ];
  };
}