mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
41 lines
819 B
Nix
41 lines
819 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gtest
|
|
, xtensor
|
|
, pybind11
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xtensor-python";
|
|
version = "0.25.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xtensor-stack";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "17la76hn4r1jv67dzz8x2pzl608r0mnvz854407mchlzj6rhsxza";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pybind11 ];
|
|
|
|
propagatedBuildInputs = [ xtensor numpy ];
|
|
|
|
dontUseSetuptoolsBuild = true;
|
|
dontUsePipInstall = true;
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
gtest
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|