depot/third_party/nixpkgs/pkgs/development/python-modules/curl-cffi/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
865 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
curl-impersonate-chrome,
cffi,
certifi,
}:
buildPythonPackage rec {
pname = "curl-cffi";
version = "0.7.0b4";
src = fetchFromGitHub {
owner = "yifeikong";
repo = "curl_cffi";
rev = "refs/tags/v${version}";
hash = "sha256-txrJNUzswAPeH4Iazn0iKJI0Rqk0HHRoDrtTfDHKMoo=";
};
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 ];
};
}