1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 # build inputs
7 typing-extensions,
8 typing-inspect,
9}:
10let
11 pname = "pyre-extensions";
12 version = "0.0.32";
13in
14buildPythonPackage {
15 inherit pname version;
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit version;
22 pname = "pyre_extensions"; # changed pname on 0.0.31?
23 hash = "sha256-U5ZxXxTqVsTV/QqIxXyn5E+qRo+QWQnt195K2Q7YXlU=";
24 };
25
26 propagatedBuildInputs = [
27 typing-extensions
28 typing-inspect
29 ];
30
31 pythonImportsCheck = [ "pyre_extensions" ];
32
33 meta = with lib; {
34 description = "This module defines extensions to the standard “typing” module that are supported by the Pyre typechecker";
35 homepage = "https://pypi.org/project/pyre-extensions";
36 license = licenses.mit;
37 maintainers = with maintainers; [ happysalada ];
38 };
39}