blob: 2d652fbd245cceff2b3f799ea7dd57f2055ff9c8 (
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
47
48
49
50
|
{ lib
, toPythonModule
, stdenv
, fetchFromGitHub
, cmake
, gtest
, xtensor
, pybind11
, numpy
}:
toPythonModule (stdenv.mkDerivation(finalAttrs: {
pname = "xtensor-python";
version = "0.26.1";
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtensor-python";
rev = finalAttrs.version;
sha256 = "sha256-kLFt5Ah5/ZO6wfTZQviVXeIAVok+/F/XCwpgPSagOMo=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
pybind11
];
nativeCheckInputs = [
gtest
];
doCheck = true;
cmakeFlags = [
"-DBUILD_TESTS=${if finalAttrs.doCheck then "ON" else "OFF"}"
];
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 ];
};
}))
|