1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "multimethod"; 12 version = "2.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "coady"; 19 repo = "multimethod"; 20 tag = "v${version}"; 21 hash = "sha256-/91re2K+nVKULJOjDoimpOukQlLlsMS9blkVQWit2eI="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "multimethod" ]; 29 30 meta = with lib; { 31 description = "Multiple argument dispatching"; 32 homepage = "https://coady.github.io/multimethod/"; 33 changelog = "https://github.com/coady/multimethod/tree/${src.tag}#changes"; 34 license = licenses.asl20; 35 maintainers = [ ]; 36 }; 37}