about summary refs log tree commit diff
path: root/pkgs/servers/foundationdb/python.nix
blob: 29d1f0906df74734a263d3df21efadcee09da4bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildPythonPackage, lib, foundationdb }:

buildPythonPackage {
  pname = "foundationdb";
  version = foundationdb.version;

  src = foundationdb.pythonsrc;
  unpackCmd = "tar xf $curSrc";

  patchPhase = ''
    substituteInPlace ./fdb/impl.py \
      --replace libfdb_c.so "${foundationdb.lib}/lib/libfdb_c.so"
  '';

  doCheck = false;

  meta = with lib; {
    description = "Python bindings for FoundationDB";
    homepage    = "https://www.foundationdb.org";
    license     = with licenses; [ asl20 ];
    maintainers = with maintainers; [ thoughtpolice ];
  };
}