summary refs log tree commit diff
path: root/pkgs/development/python-modules/tbm-utils/default.nix
blob: f0593ba1bcce2e8b6259db4c673e724618417331 (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
, attrs
, pendulum
, pprintpp
, wrapt
, pythonOlder
}:

buildPythonPackage rec {
  pname = "tbm-utils";
  version = "1.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "08fb86b5ab469bafdbef19751abb6dc1e08a3043c373ea915e1b6e20d023b529";
  };

  postPatch = ''
    substituteInPlace setup.py --replace ",<19.3" ""
  '';

  # No tests in archive.
  doCheck = false;

  disabled = pythonOlder "3.6";

  propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ];

  meta = {
    homepage = https://github.com/thebigmunch/tbm-utils;
    license = with lib.licenses; [ mit ];
    description = "A commonly-used set of utilities";
  };

}