summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/columnize/default.nix
blob: 60ea54eceb94927b68168f0929c02cef1047a09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "columnize";
  version = "0.3.11";
  pyproject = true;

  # 3.11 is the git tag for the 0.3.11 version
  # r-ryantm keeps trying to change the version to 3.11
  # nixpkgs-update: no auto update
  src = fetchFromGitHub {
    owner = "rocky";
    repo = "pycolumnize";
    tag = "3.11";
    hash = "sha256-YJEIujoRpLvUM4H4CB1nEJaYStFOSVKIGzchnptlt7M=";
  };

  build-system = [
    setuptools
  ];

  pythonImportsCheck = [ "columnize" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Python module to align a simple (not nested) list in columns";
    homepage = "https://github.com/rocky/pycolumnize";
    changelog = "https://github.com/rocky/pycolumnize/blob/${src.tag}/ChangeLog";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}