python312Packages.querystring-parser: refactor
This commit is contained in:
parent
2f345e7628
commit
6d46950f17
|
@ -1,29 +1,44 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, python, isPy27
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, python
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "querystring-parser";
|
pname = "querystring-parser";
|
||||||
version = "1.2.4";
|
version = "1.2.4";
|
||||||
disabled = isPy27;
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "querystring_parser";
|
pname = "querystring_parser";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "644fce1cffe0530453b43a83a38094dbe422ccba8c9b2f2a1c00280e14ca8a62";
|
hash = "sha256-ZE/OHP/gUwRTtDqDo4CU2+QizLqMmy8qHAAoDhTKimI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
six
|
six
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = "${python.interpreter} querystring_parser/tests.py -k 'not test_parse_normalized'";
|
# https://github.com/bernii/querystring-parser/issues/35
|
||||||
# one test fails due to https://github.com/bernii/querystring-parser/issues/35
|
doCheck = false;
|
||||||
doCheck = true;
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"querystring_parser"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Module to handle nested dictionaries";
|
||||||
homepage = "https://github.com/bernii/querystring-parser";
|
homepage = "https://github.com/bernii/querystring-parser";
|
||||||
description = "QueryString parser for Python/Django that correctly handles nested dictionaries";
|
changelog = "https://github.com/bernii/querystring-parser/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ tbenst ];
|
maintainers = with maintainers; [ tbenst ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user