Files
nixpkgs/pkgs/development/python-modules/multimethod/default.nix
2025-05-25 03:23:49 +02:00

38 lines
792 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "multimethod";
version = "2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "coady";
repo = "multimethod";
tag = "v${version}";
hash = "sha256-/91re2K+nVKULJOjDoimpOukQlLlsMS9blkVQWit2eI=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "multimethod" ];
meta = with lib; {
description = "Multiple argument dispatching";
homepage = "https://coady.github.io/multimethod/";
changelog = "https://github.com/coady/multimethod/tree/${src.tag}#changes";
license = licenses.asl20;
maintainers = [ ];
};
}