2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
2022-08-12 12:06:08 +00:00
|
|
|
, exceptiongroup
|
2021-12-06 16:07:01 +00:00
|
|
|
, poetry-core
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
exceptiongroup
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [ "generic" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generic programming (Multiple dispatch) library for Python";
|
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|