2019-10-27 14:53:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, pendulum
|
|
|
|
, pprintpp
|
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tbm-utils";
|
2020-06-06 07:47:33 +01:00
|
|
|
version = "2.6.0";
|
2019-10-27 14:53:49 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 15:10:00 +00:00
|
|
|
sha256 = "1v7pb3yirkhzbv1z5i1qp74vl880f56zvzfj68p08b5jxv64hmr3";
|
2019-10-27 14:53:49 +00:00
|
|
|
};
|
|
|
|
|
2020-04-02 08:24:23 +01:00
|
|
|
propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ];
|
2019-10-27 14:53:49 +00:00
|
|
|
|
2020-06-26 02:25:29 +01:00
|
|
|
# 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 \
|
2021-01-05 15:10:00 +00:00
|
|
|
--replace "'attrs>=18.2,<19.4'" "'attrs'"
|
2020-06-26 02:25:29 +01:00
|
|
|
'';
|
|
|
|
|
2019-10-27 14:53:49 +00:00
|
|
|
# No tests in archive.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A commonly-used set of utilities";
|
2020-04-02 08:24:23 +01:00
|
|
|
homepage = "https://github.com/thebigmunch/tbm-utils";
|
|
|
|
license = with lib.licenses; [ mit ];
|
2019-10-27 14:53:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|