2021-10-13 14:39:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "future-typing";
|
|
|
|
version = "0.4.1";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2021-10-13 14:39:47 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "future_typing";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "65fdc5034a95db212790fee5e977fb0a2df8deb60dccf3bac17d6d2b1a9bbacd";
|
|
|
|
};
|
|
|
|
|
2021-10-14 14:12:29 +00:00
|
|
|
doCheck = false; # No tests in pypi source. Did not get tests from GitHub source to work.
|
2021-10-13 14:39:47 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "future_typing" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Use generic type hints and new union syntax `|` with python 3.6+";
|
|
|
|
homepage = "https://github.com/PrettyWood/future-typing";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kfollesdal ];
|
|
|
|
};
|
|
|
|
}
|