python3Packages.pot: minor fixes from PR review

This commit is contained in:
Alexander Kiselyov 2021-08-20 14:33:53 +03:00
parent 1d89758e85
commit eb683a5d77
2 changed files with 4 additions and 3 deletions

View file

@ -26,8 +26,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report= --cov=ot" \
""
--replace "--cov-report= --cov=ot" ""
'';
nativeBuildInputs = [ numpy cython ];
@ -36,6 +35,8 @@ buildPythonPackage rec {
++ lib.optionals enableDimensionalityReduction [ pymanopt autograd ];
checkInputs = [ matplotlib scikit-learn pytestCheckHook ];
# To prevent importing of an incomplete package from the build directory
# instead of nix store (`ot` is the top-level package name).
preCheck = ''
rm -r ot
'';

View file

@ -5571,7 +5571,7 @@ in {
postorius = callPackage ../servers/mail/mailman/postorius.nix { };
POT = callPackage ../development/python-modules/POT { };
pot = callPackage ../development/python-modules/pot { };
potr = callPackage ../development/python-modules/potr { };