summary refs log tree commit diff
path: root/pkgs/development/python-modules/textwrap3/default.nix
blob: 5b8e10db83ea7fd582165bd5481d8f56827c616d (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
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, tox
, pytest
, coverage
, pytestcov
}:

buildPythonPackage rec {
  pname = "textwrap3";
  version = "0.9.2";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "5008eeebdb236f6303dcd68f18b856d355f6197511d952ba74bc75e40e0c3414";
  };

  checkInputs = [
    tox
    pytest
    coverage
    pytestcov
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Textwrap from Python 3.6 backport plus a few tweaks";
    homepage = https://github.com/jonathaneunice/textwrap3;
    license = licenses.psfl;
    maintainers = [ maintainers.costrouc ];
  };
}