blob: 14d063a802d6a23dab3ff85cc8637ea1c3a08546 (
plain)
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
47
48
49
|
{
lib,
toPythonModule,
stdenv,
fetchFromGitHub,
cmake,
gtest,
xtensor,
pybind11,
numpy,
}:
toPythonModule (
stdenv.mkDerivation (finalAttrs: {
pname = "xtensor-python";
version = "0.27.0";
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtensor-python";
rev = finalAttrs.version;
hash = "sha256-Cy/aXuiriE/qxSd4Apipzak30DjgE7jX8ai1ThJ/VnE=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ pybind11 ];
nativeCheckInputs = [ gtest ];
doCheck = true;
cmakeFlags = [
# Always build the tests, even if not running them, because testing whether
# they can be built is a test in itself.
"-DBUILD_TESTS=ON"
];
propagatedBuildInputs = [
xtensor
numpy
];
checkTarget = "xtest";
meta = with lib; {
homepage = "https://github.com/xtensor-stack/xtensor-python";
description = "Python bindings for the xtensor C++ multi-dimensional array library";
license = licenses.bsd3;
maintainers = with maintainers; [ lsix ];
};
})
)
|