5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
49 lines
868 B
Nix
49 lines
868 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, curl-impersonate-chrome
|
|
, cffi
|
|
, certifi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "curl-cffi";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yifeikong";
|
|
repo = "curl_cffi";
|
|
rev = "v${version}";
|
|
hash = "sha256-VeBh5wp/VEMDGR2YK06w34hBv9qHIyA+EiZHrhEhAGw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|