mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python3Packages.wasserstein: init at 1.1.0
This commit is contained in:
parent
2a48d59211
commit
ab6dd73dc6
50
pkgs/development/python-modules/wasserstein/default.nix
Normal file
50
pkgs/development/python-modules/wasserstein/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, llvmPackages
|
||||
, wurlitzer
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Wasserstein";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pkomiske";
|
||||
repo = pname;
|
||||
rev = "89c2d6279a7e0aa3b56bcc8fb7b6009420f2563e"; # https://github.com/pkomiske/Wasserstein/issues/1
|
||||
hash = "sha256-s9en6XwvO/WPsF7/+SEmGePHZQgl7zLgu5sEn4nD9YE=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
llvmPackages.openmp
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
wurlitzer
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
pytestFlagsArray = [
|
||||
"wasserstein/tests"
|
||||
];
|
||||
disabledTestPaths = [
|
||||
"wasserstein/tests/test_emd.py" # requires "ot"
|
||||
# cyclic dependency on energyflow
|
||||
"wasserstein/tests/test_externalemdhandler.py"
|
||||
"wasserstein/tests/test_pairwiseemd.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "wasserstein" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python/C++ library for computing Wasserstein distances efficiently";
|
||||
homepage = "https://github.com/pkomiske/Wasserstein";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
@ -11647,6 +11647,8 @@ in {
|
||||
|
||||
wasabi = callPackage ../development/python-modules/wasabi { };
|
||||
|
||||
wasserstein = callPackage ../development/python-modules/wasserstein { };
|
||||
|
||||
wasm = callPackage ../development/python-modules/wasm { };
|
||||
|
||||
wasmerPackages = pkgs.recurseIntoAttrs (callPackage ../development/python-modules/wasmer { });
|
||||
|
Loading…
Reference in New Issue
Block a user