2018-10-10 17:32:38 +00:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "facebook-sdk";
|
2018-12-14 23:13:53 +00:00
|
|
|
version = "3.1.0";
|
2018-10-10 17:32:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-14 23:13:53 +00:00
|
|
|
sha256 = "138grz0n6plzdqgi4h6hhszf58bsvx9v76cwj51g1nd3kvkd5g6a";
|
2018-10-10 17:32:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pythonforfacebook/facebook-sdk";
|
2018-10-10 17:32:38 +00:00
|
|
|
license = licenses.asl20 ;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|