Personal-use NixOS configuration
1{
2 lib,
3 python3,
4 fetchPypi,
5}:
6
7python3.pkgs.buildPythonPackage rec {
8 pname = "2captcha-python-async";
9 version = "1.5.1";
10 pyproject = true;
11
12 src = fetchPypi {
13 pname = "2captcha_python_async";
14 inherit version;
15 hash = "sha256-ydW3PdrCOovNwblrB19xZZRcDXmDb4Nw04AtnFirMjY=";
16 };
17
18 build-system = with python3.pkgs; [
19 setuptools
20 ];
21
22 dependencies = with python3.pkgs; [
23 aiofiles
24 httpx
25 requests
26 ];
27
28 pythonImportsCheck = [ "twocaptcha" ];
29
30 meta = {
31 description = "Easy integration with the API of 2captcha captcha solving service";
32 homepage = "https://github.com/techinz/2captcha-python-async";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ encode42 ];
35 };
36}