depot/third_party/nixpkgs/pkgs/development/python-modules/querystring-parser/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
816 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, python, isPy27
, six
}:
buildPythonPackage rec {
pname = "querystring_parser";
version = "1.2.4";
disabled = isPy27;
src = fetchPypi {
inherit pname 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 stdenv.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 ];
};
}