nixpkgs/pkgs/development/python-modules/multimethod/default.nix
2024-05-22 17:32:03 +02:00

38 lines
797 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "multimethod";
version = "1.9.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "coady";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-KfO+6bZOZOv9SWTV4eqJTWb3/PeCpnXknSF47ddZR5o=";
};
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/v${version}#changes";
license = licenses.asl20;
maintainers = [ ];
};
}