2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2021-04-25 03:57:28 +00:00
|
|
|
, pytestCheckHook
|
2023-02-22 10:55:15 +00:00
|
|
|
, pythonOlder
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "multimethod";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.9.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "pyproject";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coady";
|
|
|
|
repo = pname;
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-KfO+6bZOZOv9SWTV4eqJTWb3/PeCpnXknSF47ddZR5o=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-25 03:57:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-08-12 14:41:47 +00:00
|
|
|
pythonImportsCheck = [
|
2021-04-25 03:57:28 +00:00
|
|
|
"multimethod"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Multiple argument dispatching";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://coady.github.io/multimethod/";
|
|
|
|
changelog = "https://github.com/coady/multimethod/tree/v${version}#changes";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|