depot/third_party/nixpkgs/pkgs/development/python-modules/dm-tree/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

57 lines
902 B
Nix

{ stdenv
, abseil-cpp
, absl-py
, attrs
, buildPythonPackage
, cmake
, fetchFromGitHub
, lib
, numpy
, pybind11
, wrapt
}:
buildPythonPackage rec {
pname = "dm-tree";
version = "0.1.7";
src = fetchFromGitHub {
owner = "deepmind";
repo = "tree";
rev = version;
hash = "sha256-rg6dcGcbTGfK3h4WAyhwCjgM3o64Jj2SImxNsZXJHHM=";
};
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 ];
};
}