Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 abseil-cpp, 4 absl-py, 5 attrs, 6 buildPythonPackage, 7 cmake, 8 fetchFromGitHub, 9 lib, 10 numpy, 11 pybind11, 12 wrapt, 13}: 14 15buildPythonPackage rec { 16 pname = "dm-tree"; 17 version = "0.1.8"; 18 format = "setuptools"; 19 20 src = fetchFromGitHub { 21 owner = "deepmind"; 22 repo = "tree"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-VvSJTuEYjIz/4TTibSLkbg65YmcYqHImTHOomeorMJc="; 25 }; 26 27 patches = [ ./cmake.patch ]; 28 29 dontUseCmakeConfigure = true; 30 31 nativeBuildInputs = [ 32 cmake 33 pybind11 34 ]; 35 36 buildInputs = [ 37 abseil-cpp 38 pybind11 39 ]; 40 41 nativeCheckInputs = [ 42 absl-py 43 attrs 44 numpy 45 wrapt 46 ]; 47 48 pythonImportsCheck = [ "tree" ]; 49 50 meta = with lib; { 51 broken = stdenv.isDarwin; 52 description = "Tree is a library for working with nested data structures"; 53 homepage = "https://github.com/deepmind/tree"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ 56 samuela 57 ndl 58 ]; 59 }; 60}