about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ptable/default.nix
blob: d88a7433f068ed32f0ff81a124b699366c413b55 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "ptable";
  version = "unstable-2019-06-14";
  pyproject = true;

  # https://github.com/kxxoling/PTable/issues/27
  src = fetchFromGitHub {
    owner = "kxxoling";
    repo = "PTable";
    rev = "bcfdb92811ae1f39e1065f31544710bf87d3bc21";
    sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    homepage = "https://github.com/kxxoling/PTable";
    description = "Simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables";
    mainProgram = "ptable";
    license = licenses.bsd3;
    maintainers = [ maintainers.mmahut ];
  };
}