python3Packages.pot: init at 0.7.0
This commit is contained in:
parent
9f5d822ef0
commit
2a0b098c13
54
pkgs/development/python-modules/POT/default.nix
Normal file
54
pkgs/development/python-modules/POT/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, numpy
|
||||
, scipy
|
||||
, cython
|
||||
, matplotlib
|
||||
, scikit-learn
|
||||
, cupy
|
||||
, pymanopt
|
||||
, autograd
|
||||
, pytestCheckHook
|
||||
, enableDimensionalityReduction ? false
|
||||
, enableGPU ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pot";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "POT";
|
||||
inherit version;
|
||||
sha256 = "01mdsiv8rlgqzvm3bds9aj49khnn33i523c2cqqrl10zg742pb6l";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov-report= --cov=ot" \
|
||||
""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ numpy cython ];
|
||||
propagatedBuildInputs = [ numpy scipy ]
|
||||
++ lib.optionals enableGPU [ cupy ]
|
||||
++ lib.optionals enableDimensionalityReduction [ pymanopt autograd ];
|
||||
checkInputs = [ matplotlib scikit-learn pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
rm -r ot
|
||||
'';
|
||||
|
||||
# GPU tests are always skipped because of sandboxing
|
||||
disabledTests = [ "warnings" ];
|
||||
|
||||
pythonImportsCheck = [ "ot" "ot.lp" ];
|
||||
|
||||
meta = {
|
||||
description = "Python Optimal Transport Library";
|
||||
homepage = "https://pythonot.github.io/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ yl3dy ];
|
||||
};
|
||||
}
|
@ -5571,6 +5571,8 @@ in {
|
||||
|
||||
postorius = callPackage ../servers/mail/mailman/postorius.nix { };
|
||||
|
||||
POT = callPackage ../development/python-modules/POT { };
|
||||
|
||||
potr = callPackage ../development/python-modules/potr { };
|
||||
|
||||
power = callPackage ../development/python-modules/power { };
|
||||
|
Loading…
Reference in New Issue
Block a user