depot/third_party/nixpkgs/pkgs/development/python-modules/python-multipart/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
963 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 = "Streaming multipart parser for Python";
homepage = "https://github.com/andrew-d/python-multipart";
license = licenses.asl20;
maintainers = with maintainers; [ ris ];
};
}