depot/third_party/nixpkgs/pkgs/development/python-modules/multimethod/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 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 = [ ];
};
}