depot/third_party/nixpkgs/pkgs/development/python-modules/multimethod/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

42 lines
807 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 = [ ];
};
}