python3Packages.pyutil: init at 3.3.0

This commit is contained in:
Pavol Rusnak 2021-07-17 14:29:36 +02:00
parent 8ff78e6a14
commit c8e3c1fa35
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
2 changed files with 7 additions and 8 deletions

View file

@ -1,9 +1,8 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptoolsDarcs
, setuptoolsTrial
, simplejson , simplejson
, mock
, twisted , twisted
, isPyPy , isPyPy
}: }:
@ -17,12 +16,9 @@ buildPythonPackage rec {
sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848"; sha256 = "8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848";
}; };
buildInputs = [ setuptoolsDarcs setuptoolsTrial ] ++ (if doCheck then [ simplejson ] else []); propagatedBuildInputs = [ simplejson ];
propagatedBuildInputs = [ twisted ];
# Tests fail because they try to write new code into the twisted checkInputs = [ mock twisted ];
# package, apparently some kind of plugin.
doCheck = false;
prePatch = lib.optionalString isPyPy '' prePatch = lib.optionalString isPyPy ''
grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g" grep -rl 'utf-8-with-signature-unix' ./ | xargs sed -i -e "s|utf-8-with-signature-unix|utf-8|g"
@ -41,8 +37,9 @@ buildPythonPackage rec {
we're not alone in wanting tools like these. we're not alone in wanting tools like these.
''; '';
homepage = "http://allmydata.org/trac/pyutil"; homepage = "https://github.com/tpltnt/pyutil";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ prusnak ];
}; };
} }

View file

@ -5409,6 +5409,8 @@ in {
python-tado = callPackage ../development/python-modules/python-tado { }; python-tado = callPackage ../development/python-modules/python-tado { };
pyutil = callPackage ../development/python-modules/pyutil { };
pkutils = callPackage ../development/python-modules/pkutils { }; pkutils = callPackage ../development/python-modules/pkutils { };
plac = callPackage ../development/python-modules/plac { }; plac = callPackage ../development/python-modules/plac { };