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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-NfUvmkUIAdm+UZqmBWh0MZTViLJSkeRonPNSnVd+RbA=";
|
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
|
|
|
};
|
|
|
|
}
|