1{ lib, buildPythonPackage, fetchPypi, python, isPy27 2, six 3}: 4 5buildPythonPackage rec { 6 pname = "querystring_parser"; 7 version = "1.2.4"; 8 disabled = isPy27; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "644fce1cffe0530453b43a83a38094dbe422ccba8c9b2f2a1c00280e14ca8a62"; 13 }; 14 15 propagatedBuildInputs = [ 16 six 17 ]; 18 19 checkPhase = "${python.interpreter} querystring_parser/tests.py -k 'not test_parse_normalized'"; 20 # one test fails due to https://github.com/bernii/querystring-parser/issues/35 21 doCheck = true; 22 23 meta = with lib; { 24 homepage = "https://github.com/bernii/querystring-parser"; 25 description = "QueryString parser for Python/Django that correctly handles nested dictionaries"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ tbenst ]; 28 }; 29}