python313Packages.generic: refactor

+7 -7
+7 -7
pkgs/development/python-modules/generic/default.nix
··· 1 { 2 lib, 3 buildPythonPackage, 4 - pythonOlder, 5 - fetchPypi, 6 exceptiongroup, 7 poetry-core, 8 }: 9 10 buildPythonPackage rec { 11 pname = "generic"; 12 version = "1.1.4"; 13 - disabled = pythonOlder "3.7"; 14 15 - format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-3QcFbbWgCJcL37MwiK1Sv7LG6N60zsw93CupD4Xzp/w="; 20 }; 21 22 - nativeBuildInputs = [ poetry-core ]; 23 24 - propagatedBuildInputs = [ exceptiongroup ]; 25 26 pythonImportsCheck = [ "generic" ]; 27 28 meta = with lib; { 29 description = "Generic programming (Multiple dispatch) library for Python"; 30 - maintainers = [ ]; 31 homepage = "https://github.com/gaphor/generic"; 32 changelog = "https://github.com/gaphor/generic/releases/tag/${version}"; 33 license = licenses.bsd3; 34 }; 35 }
··· 1 { 2 lib, 3 buildPythonPackage, 4 exceptiongroup, 5 + fetchPypi, 6 poetry-core, 7 + pythonOlder, 8 }: 9 10 buildPythonPackage rec { 11 pname = "generic"; 12 version = "1.1.4"; 13 + pyproject = true; 14 15 + disabled = pythonOlder "3.8"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-3QcFbbWgCJcL37MwiK1Sv7LG6N60zsw93CupD4Xzp/w="; 20 }; 21 22 + build-system = [ poetry-core ]; 23 24 + dependencies = [ exceptiongroup ]; 25 26 pythonImportsCheck = [ "generic" ]; 27 28 meta = with lib; { 29 description = "Generic programming (Multiple dispatch) library for Python"; 30 homepage = "https://github.com/gaphor/generic"; 31 changelog = "https://github.com/gaphor/generic/releases/tag/${version}"; 32 license = licenses.bsd3; 33 + maintainers = [ ]; 34 }; 35 }