diff --git a/pkgs/development/python-modules/fake-http-header/default.nix b/pkgs/development/python-modules/fake-http-header/default.nix new file mode 100644 index 000000000000..9f5e78110fe4 --- /dev/null +++ b/pkgs/development/python-modules/fake-http-header/default.nix @@ -0,0 +1,35 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage (finalAttrs: { + pname = "fake-http-header"; + version = "0.3.5-unstable-2025-07-09"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "MichaelTatarski"; + repo = "fake-http-header"; + # https://github.com/MichaelTatarski/fake-http-header/issues/4 + rev = "0f110477d3ecae916e88608a123360227bfb6109"; + hash = "sha256-CznvDjzUeA0THsiIhuzvEDb4gXsP8IujpSCjt857qSo="; + }; + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "fake_http_header" ]; + + meta = with lib; { + description = "Generates random request fields for a http request header"; + homepage = "https://github.com/MichaelTatarski/fake-http-header"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1a2f579f4ce4..e1566f213be7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5503,6 +5503,8 @@ self: super: with self; { }; }; + fake-http-header = callPackage ../development/python-modules/fake-http-header { }; + fake-useragent = callPackage ../development/python-modules/fake-useragent { }; faker = callPackage ../development/python-modules/faker { };