nixpkgs/pkgs/development/python-modules/prettytable/default.nix
Fabian Affolter c320fe642e python311Packages.prettytable: 3.5.0 -> 3.8.0
Diff: jazzband/prettytable@refs/tags/3.5.0...3.8.0

Changelog: https://github.com/jazzband/prettytable/releases/tag/3.8.0
2023-09-01 14:33:30 +02:00

55 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatch-vcs
, hatchling
, pytest-lazy-fixture
, pytestCheckHook
, pythonOlder
, wcwidth
}:
buildPythonPackage rec {
pname = "prettytable";
version = "3.8.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jazzband";
repo = "prettytable";
rev = "refs/tags/${version}";
hash= "sha256-JnxUjUosQJgprIbA9szSfw1Fi21Qc4WljoRAQv4x5YM=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
wcwidth
];
nativeCheckInputs = [
pytest-lazy-fixture
pytestCheckHook
];
pythonImportsCheck = [
"prettytable"
];
meta = with lib; {
description = "Display tabular data in a visually appealing ASCII table format";
homepage = "https://github.com/jazzband/prettytable";
changelog = "https://github.com/jazzband/prettytable/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}