9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
38 lines
791 B
Nix
38 lines
791 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, exceptiongroup
|
|
, poetry-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "generic";
|
|
version = "1.1.2";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NfUvmkUIAdm+UZqmBWh0MZTViLJSkeRonPNSnVd+RbA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
exceptiongroup
|
|
];
|
|
|
|
pythonImportsCheck = [ "generic" ];
|
|
|
|
meta = with lib; {
|
|
description = "Generic programming (Multiple dispatch) library for Python";
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
homepage = "https://github.com/gaphor/generic";
|
|
changelog = "https://github.com/gaphor/generic/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|