1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, poetry-core
6}:
7
8buildPythonPackage rec {
9 pname = "generic";
10 version = "1.0.1";
11 disabled = pythonOlder "3.7";
12
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-ex93I+ofo5lP6qoolZwzjxSspeqJimY3vpB32RLJ00k=";
18 };
19
20 nativeBuildInputs = [
21 poetry-core
22 ];
23
24 pythonImportsCheck = [ "generic" ];
25
26 meta = with lib; {
27 description = "Generic programming (Multiple dispatch) library for Python";
28 maintainers = with maintainers; [ wolfangaukang ];
29 homepage = "https://github.com/gaphor/generic";
30 license = licenses.bsdOriginal;
31 };
32}