depot/third_party/nixpkgs/pkgs/development/python-modules/generic/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

35 lines
755 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
exceptiongroup,
poetry-core,
}:
buildPythonPackage rec {
pname = "generic";
version = "1.1.3";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-d4+CRv1uecIdS4t23cAI34s/PdIFYNQXfABuRWjzCUQ=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ exceptiongroup ];
pythonImportsCheck = [ "generic" ];
meta = with lib; {
description = "Generic programming (Multiple dispatch) library for Python";
maintainers = [ ];
homepage = "https://github.com/gaphor/generic";
changelog = "https://github.com/gaphor/generic/releases/tag/${version}";
license = licenses.bsd3;
};
}