blob: c4534dcdf5d03ec4924a3b32b0eeadccae67f8dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
llvmPackages,
wurlitzer,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "wasserstein";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pkomiske";
repo = "Wasserstein";
rev = "89c2d6279a7e0aa3b56bcc8fb7b6009420f2563e"; # https://github.com/pkomiske/Wasserstein/issues/1
hash = "sha256-s9en6XwvO/WPsF7/+SEmGePHZQgl7zLgu5sEn4nD9YE=";
};
buildInputs = [ llvmPackages.openmp ];
propagatedBuildInputs = [
numpy
wurlitzer
];
nativeCheckInputs = [ 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 ];
};
}
|