blob: 2d0efeceda042f26febea27e3eead5eab0370226 (
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
|
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, pendulum
, pprintpp
, wrapt
, pythonOlder
}:
buildPythonPackage rec {
pname = "tbm-utils";
version = "2.6.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "235748cceeb22c042e32d2fdfd4d710021bac9b938c4f2c35e1fce1cfd58f7ec";
};
propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ];
# this versioning was done to prevent normal pip users from encountering
# issues with package failing to build from source, but nixpkgs is better
postPatch = ''
substituteInPlace setup.py \
--replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0"
'';
# No tests in archive.
doCheck = false;
meta = {
description = "A commonly-used set of utilities";
homepage = "https://github.com/thebigmunch/tbm-utils";
license = with lib.licenses; [ mit ];
};
}
|