depot/third_party/nixpkgs/pkgs/development/python-modules/python-multipart/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

58 lines
965 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
pytestCheckHook,
mock,
pyyaml,
six,
# for passthru.tests
asgi-csrf,
connexion,
fastapi,
gradio,
starlette,
}:
buildPythonPackage rec {
pname = "python-multipart";
version = "0.0.9";
pyproject = true;
src = fetchPypi {
pname = "python_multipart";
inherit version;
hash = "sha256-A/VGiMZj8beXcQXwIQQ7B5MVHkyxwanUoR/BPWIsQCY=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ six ];
pythonImportsCheck = [ "multipart" ];
nativeCheckInputs = [
pytestCheckHook
mock
pyyaml
];
passthru.tests = {
inherit
asgi-csrf
connexion
fastapi
gradio
starlette
;
};
meta = with lib; {
description = "A streaming multipart parser for Python";
homepage = "https://github.com/andrew-d/python-multipart";
license = licenses.asl20;
maintainers = with maintainers; [ ris ];
};
}