1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cmake
5, gtest
6, xtensor
7, pybind11
8, numpy
9}:
10
11buildPythonPackage rec {
12 pname = "xtensor-python";
13 version = "0.25.1";
14
15 src = fetchFromGitHub {
16 owner = "xtensor-stack";
17 repo = pname;
18 rev = version;
19 sha256 = "17la76hn4r1jv67dzz8x2pzl608r0mnvz854407mchlzj6rhsxza";
20 };
21
22 nativeBuildInputs = [ cmake pybind11 ];
23
24 propagatedBuildInputs = [ xtensor numpy ];
25
26 dontUseSetuptoolsBuild = true;
27 dontUsePipInstall = true;
28 dontUseSetuptoolsCheck = true;
29
30 checkInputs = [
31 gtest
32 ];
33
34 meta = with lib; {
35 homepage = "https://github.com/xtensor-stack/xtensor-python";
36 description = "Python bindings for the xtensor C++ multi-dimensional array library";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ lsix ];
39 };
40}