mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
python311Packages.streaming-form-data: 1.8.1 -> 1.13.0
This commit is contained in:
parent
23203f8e12
commit
010d33ac5a
@ -1,30 +1,33 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder,
|
||||
cython, numpy, pytest, requests-toolbelt }:
|
||||
cython, smart-open, pytestCheckHook, moto, requests-toolbelt }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "streaming-form-data";
|
||||
version = "1.8.1";
|
||||
version = "1.13.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "siddhantgoel";
|
||||
repo = "streaming-form-data";
|
||||
rev = "v${version}";
|
||||
sha256 = "1wnak8gwkc42ihgf0g9r7r858hxbqav2xdgqa8azid8v2ff6iq4d";
|
||||
hash = "sha256-Ntiad5GZtfRd+2uDPgbDzLBzErGFroffK6ZAmMcsfXA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [ requests-toolbelt ];
|
||||
propagatedBuildInputs = [ smart-open ];
|
||||
|
||||
nativeCheckInputs = [ numpy pytest ];
|
||||
nativeCheckInputs = [ pytestCheckHook moto requests-toolbelt ];
|
||||
|
||||
checkPhase = ''
|
||||
make test
|
||||
'';
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
|
||||
pythonImportsCheck = [ "streaming_form_data" ];
|
||||
|
||||
preCheck = ''
|
||||
# remove in-tree copy to make pytest find the installed one, with the native parts already built
|
||||
rm -rf streaming_form_data
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Streaming parser for multipart/form-data";
|
||||
homepage = "https://github.com/siddhantgoel/streaming-form-data";
|
||||
|
Loading…
Reference in New Issue
Block a user