mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
Merge pull request #48166 from costrouc/costrouc/python-facebook-sdk
pythonPackages.facebook-sdk: 0.3.0 -> 3.0.0 refactor move to python-modules
This commit is contained in:
commit
726b4da189
32
pkgs/development/python-modules/facebook-sdk/default.nix
Normal file
32
pkgs/development/python-modules/facebook-sdk/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2367,22 +2367,7 @@ in {
|
|||
|
||||
ezdxf = callPackage ../development/python-modules/ezdxf {};
|
||||
|
||||
facebook-sdk = buildPythonPackage rec {
|
||||
name = "facebook-sdk-0.4.0";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/f/facebook-sdk/facebook-sdk-0.4.0.tar.gz";
|
||||
sha256 = "5a96c54d06213039dff1fe1fabc51972e394666cd6d83ea70f7c2e67472d9b72";
|
||||
};
|
||||
|
||||
meta = with pkgs.stdenv.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 ;
|
||||
};
|
||||
};
|
||||
facebook-sdk = callPackage ../development/python-modules/facebook-sdk { };
|
||||
|
||||
face_recognition = callPackage ../development/python-modules/face_recognition { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue