2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
pytestCheckHook,
|
|
|
|
mock,
|
|
|
|
pyyaml,
|
|
|
|
six,
|
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
asgi-csrf,
|
|
|
|
connexion,
|
|
|
|
fastapi,
|
|
|
|
gradio,
|
|
|
|
starlette,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-multipart";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.0.9";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "python_multipart";
|
|
|
|
inherit version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-A/VGiMZj8beXcQXwIQQ7B5MVHkyxwanUoR/BPWIsQCY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "multipart" ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit
|
|
|
|
asgi-csrf
|
|
|
|
connexion
|
|
|
|
fastapi
|
|
|
|
gradio
|
|
|
|
starlette
|
2024-06-05 15:53:02 +00:00
|
|
|
;
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Streaming multipart parser for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/andrew-d/python-multipart";
|
|
|
|
license = licenses.asl20;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ ris ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|