diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/foundationdb/python.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/foundationdb/python.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/foundationdb/python.nix b/nixpkgs/pkgs/servers/foundationdb/python.nix new file mode 100644 index 000000000000..55b834c54369 --- /dev/null +++ b/nixpkgs/pkgs/servers/foundationdb/python.nix @@ -0,0 +1,24 @@ +{ buildPythonPackage, lib, foundationdb }: + +buildPythonPackage rec { + 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 ]; + }; +} + |