pythonPackages.tbm-utils: Fix dependencies

This commit is contained in:
Sandro Jäckel 2021-01-05 16:10:00 +01:00
parent f7507ffa95
commit 89466bac4a
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -5,17 +5,15 @@
, pendulum
, pprintpp
, wrapt
, pythonOlder
}:
buildPythonPackage rec {
pname = "tbm-utils";
version = "2.6.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "235748cceeb22c042e32d2fdfd4d710021bac9b938c4f2c35e1fce1cfd58f7ec";
sha256 = "1v7pb3yirkhzbv1z5i1qp74vl880f56zvzfj68p08b5jxv64hmr3";
};
propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ];
@ -24,7 +22,7 @@ buildPythonPackage rec {
# 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"
--replace "'attrs>=18.2,<19.4'" "'attrs'"
'';
# No tests in archive.