about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/querystring-parser/default.nix
blob: 7a58fd2a0db1e57c2ef67af2fa4a9db7cae12da9 (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
{ lib, buildPythonPackage, fetchPypi, python, isPy27
, six
}:

buildPythonPackage rec {
  pname = "querystring-parser";
  version = "1.2.4";
  disabled = isPy27;

  src = fetchPypi {
    pname = "querystring_parser";
    inherit version;
    sha256 = "644fce1cffe0530453b43a83a38094dbe422ccba8c9b2f2a1c00280e14ca8a62";
  };

  propagatedBuildInputs = [
    six
  ];

  checkPhase = "${python.interpreter} querystring_parser/tests.py -k 'not test_parse_normalized'";
  # one test fails due to https://github.com/bernii/querystring-parser/issues/35
  doCheck = true;

  meta = with lib; {
    homepage = "https://github.com/bernii/querystring-parser";
    description = "QueryString parser for Python/Django that correctly handles nested dictionaries";
    license = licenses.mit;
    maintainers = with maintainers; [ tbenst ];
  };
}