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