depot/third_party/nixpkgs/pkgs/development/python-modules/generic/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

35 lines
755 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 = [ ];
homepage = "https://github.com/gaphor/generic";
changelog = "https://github.com/gaphor/generic/releases/tag/${version}";
license = licenses.bsd3;
};
}