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