410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
42 lines
807 B
Nix
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 = [ ];
|
|
};
|
|
}
|