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
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "multimethod";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.6";
|
|
|
|
format = "pyproject";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coady";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09vrxzv8q0lqsbh6d83wjdd29ja66rj31y7wmyha14jk603fd9k0";
|
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";
|
|
|
|
homepage = "https://github.com/coady/multimethod";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|