mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{ stdenv
|
|
, abseil-cpp
|
|
, absl-py
|
|
, attrs
|
|
, buildPythonPackage
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, lib
|
|
, numpy
|
|
, pybind11
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dm-tree";
|
|
# As of 2021-12-29, the latest stable version still builds with Bazel.
|
|
version = "unstable-2021-12-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deepmind";
|
|
repo = "tree";
|
|
rev = "b452e5c2743e7489b4ba7f16ecd51c516d7cd8e3";
|
|
sha256 = "1r187xwpvnnj98lyasngcv3lbxz0ziihpl5dbnjbfbjr0kh6z0j9";
|
|
};
|
|
|
|
patches = [
|
|
./cmake.patch
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pybind11
|
|
];
|
|
|
|
buildInputs = [
|
|
abseil-cpp
|
|
pybind11
|
|
];
|
|
|
|
checkInputs = [
|
|
absl-py
|
|
attrs
|
|
numpy
|
|
wrapt
|
|
];
|
|
|
|
pythonImportsCheck = [ "tree" ];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "Tree is a library for working with nested data structures.";
|
|
homepage = "https://github.com/deepmind/tree";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ samuela ndl ];
|
|
};
|
|
}
|