nixpkgs-suyu/pkgs/development/python-modules/facebook-sdk/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

33 lines
714 B
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, requests
, python
}:
buildPythonPackage rec {
pname = "facebook-sdk";
version = "3.1.0";
format = "setuptools";
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 = [ ];
};
}