1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 exceptiongroup,
7 poetry-core,
8}:
9
10buildPythonPackage rec {
11 pname = "generic";
12 version = "1.1.2";
13 disabled = pythonOlder "3.7";
14
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-NfUvmkUIAdm+UZqmBWh0MZTViLJSkeRonPNSnVd+RbA=";
20 };
21
22 nativeBuildInputs = [ poetry-core ];
23
24 propagatedBuildInputs = [ exceptiongroup ];
25
26 pythonImportsCheck = [ "generic" ];
27
28 meta = with lib; {
29 description = "Generic programming (Multiple dispatch) library for Python";
30 maintainers = with maintainers; [ wolfangaukang ];
31 homepage = "https://github.com/gaphor/generic";
32 changelog = "https://github.com/gaphor/generic/releases/tag/${version}";
33 license = licenses.bsd3;
34 };
35}