Files
nixpkgs/pkgs/development/python-modules/python-multipart/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
mock,
pyyaml,
# for passthru.tests
asgi-csrf,
connexion,
fastapi,
gradio,
starlette,
}:
buildPythonPackage rec {
pname = "python-multipart";
version = "0.0.20";
pyproject = true;
src = fetchFromGitHub {
owner = "Kludex";
repo = "python-multipart";
tag = version;
hash = "sha256-y8wLGRvc7xSmkSyK77Tl5V6mMneS+dtmqBLZOhvmRSY=";
};
build-system = [ hatchling ];
pythonImportsCheck = [ "python_multipart" ];
nativeCheckInputs = [
pytestCheckHook
mock
pyyaml
];
passthru.tests = {
inherit
asgi-csrf
connexion
fastapi
gradio
starlette
;
};
meta = {
changelog = "https://github.com/Kludex/python-multipart/blob/${src.tag}/CHANGELOG.md";
description = "Streaming multipart parser for Python";
homepage = "https://github.com/Kludex/python-multipart";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ris ];
};
}