nixpkgs/pkgs/development/python-modules/xtensor-python/default.nix
Martin Weinelt fb236fcdb1 python3Packages.xtensor-python: 0.28.0 -> 0.29.0
This commit was automatically generated using update-python-libraries.
2026-02-01 17:40:50 +01:00

48 lines
1.1 KiB
Nix

{
lib,
stdenv,
toPythonModule,
fetchFromGitHub,
cmake,
gtest,
xtensor,
pybind11,
numpy,
}:
toPythonModule (
stdenv.mkDerivation (finalAttrs: {
pname = "xtensor-python";
version = "0.29.0";
src = fetchFromGitHub {
owner = "xtensor-stack";
repo = "xtensor-python";
tag = finalAttrs.version;
hash = "sha256-GN1X46gmeXh3pM6sw9sSUahLOxnSoimoY+K66vy8SxM=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ pybind11 ];
nativeCheckInputs = [ gtest ];
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
cmakeFlags = [
# Always build the tests, even if not running them, because testing whether
# they can be built is a test in itself.
(lib.cmakeBool "BUILD_TESTS" true)
];
propagatedBuildInputs = [
xtensor
numpy
];
checkTarget = "xtest";
meta = {
homepage = "https://github.com/xtensor-stack/xtensor-python";
description = "Python bindings for the xtensor C++ multi-dimensional array library";
license = lib.licenses.bsd3;
};
})
)