2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
exceptiongroup,
|
|
|
|
poetry-core,
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "generic";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.1.3";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-d4+CRv1uecIdS4t23cAI34s/PdIFYNQXfABuRWjzCUQ=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ exceptiongroup ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [ "generic" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generic programming (Multiple dispatch) library for Python";
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = [ ];
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/gaphor/generic";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/gaphor/generic/releases/tag/${version}";
|
|
|
|
license = licenses.bsd3;
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|