Personal-use NixOS configuration
1# https://github.com/NixOS/nixpkgs/blob/1c8ba8d3f7634acac4a2094eef7c32ad9106532c/pkgs/development/python-modules/browserforge/default.nix
2
3{
4 lib,
5 python3,
6 pythonOlder ? python3.pkgs.pythonOlder,
7 fetchFromGitHub,
8 apify-fingerprint-datapoints,
9}:
10
11python3.pkgs.buildPythonPackage rec {
12 pname = "browserforge";
13 version = "1.2.4";
14 pyproject = true;
15
16 disabled = pythonOlder "3.11";
17
18 src = fetchFromGitHub {
19 owner = "daijro";
20 repo = "browserforge";
21 tag = "v${version}";
22 hash = "sha256-8mh1Wok96rwUNAdnaoI1VYkyNr50JX/K7o04n/epuMo=";
23 };
24
25 build-system = with python3.pkgs; [ poetry-core ];
26
27 dependencies = with python3.pkgs; [
28 apify-fingerprint-datapoints
29 aiofiles
30 click
31 httpx
32 orjson
33 rich
34 ];
35
36 # Module has no test
37 doCheck = false;
38
39 pythonImportsCheck = [ "browserforge" ];
40
41 meta = {
42 description = "Intelligent browser header & fingerprint generator";
43 homepage = "https://github.com/daijro/browserforge";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}