depot/third_party/nixpkgs/pkgs/development/python-modules/facebook-sdk/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
710 B
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, requests
, python
}:
buildPythonPackage rec {
pname = "facebook-sdk";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "138grz0n6plzdqgi4h6hhszf58bsvx9v76cwj51g1nd3kvkd5g6a";
};
propagatedBuildInputs = [ requests ];
# checks require network
doCheck = false;
checkPhase = ''
${python.interpreter} test/test_facebook.py
'';
meta = with pkgs.lib; {
description = "Client library that supports the Facebook Graph API and the official Facebook JavaScript SDK";
homepage = "https://github.com/pythonforfacebook/facebook-sdk";
license = licenses.asl20 ;
maintainers = [ maintainers.costrouc ];
};
}