Loading pkgs/development/python-modules/tabulate/default.nix +11 −13 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools-scm, setuptools, wcwidth, pytestCheckHook, }: buildPythonPackage rec { version = "0.9.0"; buildPythonPackage (finalAttrs: { version = "0.10.0"; pname = "tabulate"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-AJWxK/WWbeUpwP6x+ghnFnGzNo7sd9fverEUviwGizw="; src = fetchFromGitHub { owner = "astanin"; repo = "python-tabulate"; tag = "v${finalAttrs.version}"; hash = "sha256-JnwkABtIgPqANuv3lo8e8zr8m6a/qnxz4w1QvTVZFxg="; }; nativeBuildInputs = [ Loading @@ -30,17 +32,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; # Tests against stdlib behavior which changed in https://github.com/python/cpython/pull/139070 disabledTests = [ "test_wrap_multiword_non_wide" ]; ++ lib.concatAttrValues finalAttrs.finalPackage.optional-dependencies; meta = { description = "Pretty-print tabular data"; mainProgram = "tabulate"; homepage = "https://github.com/astanin/python-tabulate"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ doronbehar ]; }; } }) Loading
pkgs/development/python-modules/tabulate/default.nix +11 −13 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, fetchFromGitHub, setuptools-scm, setuptools, wcwidth, pytestCheckHook, }: buildPythonPackage rec { version = "0.9.0"; buildPythonPackage (finalAttrs: { version = "0.10.0"; pname = "tabulate"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-AJWxK/WWbeUpwP6x+ghnFnGzNo7sd9fverEUviwGizw="; src = fetchFromGitHub { owner = "astanin"; repo = "python-tabulate"; tag = "v${finalAttrs.version}"; hash = "sha256-JnwkABtIgPqANuv3lo8e8zr8m6a/qnxz4w1QvTVZFxg="; }; nativeBuildInputs = [ Loading @@ -30,17 +32,13 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; # Tests against stdlib behavior which changed in https://github.com/python/cpython/pull/139070 disabledTests = [ "test_wrap_multiword_non_wide" ]; ++ lib.concatAttrValues finalAttrs.finalPackage.optional-dependencies; meta = { description = "Pretty-print tabular data"; mainProgram = "tabulate"; homepage = "https://github.com/astanin/python-tabulate"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ doronbehar ]; }; } })