mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-28 17:00:33 +00:00
35 lines
705 B
Nix
35 lines
705 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "facebook-sdk";
|
|
version = "3.1.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-yrzS5p6j2fBCkZyZs1PfeqHivobQQBIfbp9eY8HPD40=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
# checks require network
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} test/test_facebook.py
|
|
'';
|
|
|
|
meta = {
|
|
description = "Client library that supports the Facebook Graph API and the official Facebook JavaScript SDK";
|
|
homepage = "https://github.com/pythonforfacebook/facebook-sdk";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|