2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "querystring-parser";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "1.2.4";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "querystring_parser";
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|