Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48166 from costrouc/costrouc/python-facebook-sdk
pythonPackages.facebook-sdk: 0.3.0 -> 3.0.0 refactor move to python-modules
- Loading branch information
Showing
2 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ pkgs | ||
, buildPythonPackage | ||
, fetchPypi | ||
, requests | ||
, python | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "facebook-sdk"; | ||
version = "3.0.0"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "f3d450ec313b62d3716fadc4e5098183760e1d2a9e0434a94b74e59ea6ea3e4d"; | ||
}; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters