Files
nixpkgs/pkgs/development/python-modules/fast-query-parsers/default.nix
Fabian Affolter 561fd4e670 python313Packages.fast-query-parsers: init at 1.0.3
Ultra-fast query string and url-encoded form-data parsers

https://github.com/litestar-org/fast-query-parsers
2025-09-07 00:16:48 +02:00

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cargo,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
rustc,
rustPlatform,
}:
buildPythonPackage rec {
pname = "fast-query-parsers";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "litestar-org";
repo = "fast-query-parsers";
tag = "v${version}";
hash = "sha256-08xL0sOmUzsZYtM1thYUV93bj9ERr3LaVrW46zBrzeE=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
name = "${pname}-${version}";
hash = "sha256-kp5bCmHYMS/e8eM6HrRw0JlVaxwPscFGDLQ0PX4ZIC4=";
};
build-system = [
cargo
poetry-core
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "fast_query_parsers" ];
meta = {
description = "Ultra-fast query string and url-encoded form-data parsers";
homepage = "https://github.com/litestar-org/fast-query-parsers";
changelog = "https://github.com/litestar-org/fast-query-parsers/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}