python3Packages.streaming-form-data: init at 1.8.1

This commit is contained in:
Zhaofeng Li 2021-07-20 19:21:02 -07:00
parent 9ef44466b8
commit d96f1bc321
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder,
cython, numpy, pytest, requests-toolbelt }:
buildPythonPackage rec {
pname = "streaming-form-data";
version = "1.8.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "siddhantgoel";
repo = "streaming-form-data";
rev = "v${version}";
sha256 = "1wnak8gwkc42ihgf0g9r7r858hxbqav2xdgqa8azid8v2ff6iq4d";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [ requests-toolbelt ];
checkInputs = [ numpy pytest ];
checkPhase = ''
make test
'';
pythonImportsCheck = [ "streaming_form_data" ];
meta = with lib; {
description = "Streaming parser for multipart/form-data";
homepage = "https://github.com/siddhantgoel/streaming-form-data";
license = licenses.mit;
maintainers = with maintainers; [ zhaofengli ];
};
}

View file

@ -8402,6 +8402,8 @@ in {
stravalib = callPackage ../development/python-modules/stravalib { };
streaming-form-data = callPackage ../development/python-modules/streaming-form-data { };
streamz = callPackage ../development/python-modules/streamz { };
strict-rfc3339 = callPackage ../development/python-modules/strict-rfc3339 { };