depot/third_party/nixpkgs/pkgs/development/python-modules/curl-cffi/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
863 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
curl-impersonate-chrome,
cffi,
certifi,
}:
buildPythonPackage rec {
pname = "curl-cffi";
version = "0.7.1";
src = fetchFromGitHub {
owner = "yifeikong";
repo = "curl_cffi";
rev = "refs/tags/v${version}";
hash = "sha256-fVmZ5DKgkjnO1CPYVSa9qei26B0mXqZMtVGhtNGfEpY=";
};
patches = [ ./use-system-libs.patch ];
buildInputs = [ curl-impersonate-chrome ];
format = "pyproject";
build-system = [ setuptools ];
nativeBuildInputs = [ cffi ];
propagatedBuildInputs = [
cffi
certifi
];
pythonImportsCheck = [ "curl_cffi" ];
meta = with lib; {
description = "Python binding for curl-impersonate via cffi";
homepage = "https://curl-cffi.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu ];
};
}