summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-multipart/default.nix
blob: c27923424872397cf7c2298bfa8caa657be09af5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestcov
, mock
, pyyaml
, six
}:

buildPythonPackage rec {
  pname = "python-multipart";
  version = "0.0.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f7bb5f611fc600d15fa47b3974c8aa16e93724513b49b5f95c81e6624c83fa43";
  };

  checkInputs = [
    pytest
    pytestcov
    mock
    pyyaml
  ];

  propagatedBuildInputs = [
    six
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "A streaming multipart parser for Python";
    homepage = "https://github.com/andrew-d/python-multipart";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}