From 17b7fa77c4c4a24e01618bf894bcf17bdd4281f3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 16 Sep 2023 10:25:01 +0000 Subject: [PATCH 1/4] python310Packages.jsonpath-ng: 1.5.3 -> 1.6.0 --- pkgs/development/python-modules/jsonpath-ng/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix index 3f189a89439b..f4b0c9a3cbe5 100644 --- a/pkgs/development/python-modules/jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/jsonpath-ng/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "jsonpath-ng"; - version = "1.5.3"; + version = "1.6.0"; src = fetchFromGitHub { owner = "h2non"; repo = pname; # missing tag https://github.com/h2non/jsonpath-ng/issues/114 - rev = "cce4a3d4063ac8af928795acc53beb27a2bfd101"; - hash = "sha256-+9iQHQs5TQhZFeIqMlsa3FFPfZEktAWy1lSdJU7kZrc="; + rev = "refs/tags/v${version}"; + hash = "sha256-q4kIH/2+VKdlSa+IhJ3ymHpc5gmml9lW4aJS477/YSo="; }; propagatedBuildInputs = [ From e103762649222542f4627b3fbefe13f82583c7a4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Sep 2023 13:29:02 +0200 Subject: [PATCH 2/4] python310Packages.jsonpath-ng: add changelog to meta --- pkgs/development/python-modules/jsonpath-ng/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix index f4b0c9a3cbe5..16e638bc30b4 100644 --- a/pkgs/development/python-modules/jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/jsonpath-ng/default.nix @@ -35,8 +35,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "jsonpath_ng" ]; meta = with lib; { - description = "JSONPath implementation for Python"; + description = "JSONPath implementation"; homepage = "https://github.com/h2non/jsonpath-ng"; + changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; From fae75190d3bdd7703cbf2f06eabba90ccc80a4a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Sep 2023 13:31:03 +0200 Subject: [PATCH 3/4] python310Packages.jsonpath-ng: clean-up --- .../python-modules/jsonpath-ng/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix index 16e638bc30b4..21ea81637d00 100644 --- a/pkgs/development/python-modules/jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/jsonpath-ng/default.nix @@ -1,38 +1,41 @@ { lib , buildPythonPackage -, decorator , fetchFromGitHub , ply , pytestCheckHook -, six +, pythonOlder }: buildPythonPackage rec { pname = "jsonpath-ng"; version = "1.6.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "h2non"; repo = pname; - # missing tag https://github.com/h2non/jsonpath-ng/issues/114 rev = "refs/tags/v${version}"; hash = "sha256-q4kIH/2+VKdlSa+IhJ3ymHpc5gmml9lW4aJS477/YSo="; }; propagatedBuildInputs = [ - decorator ply - six ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; disabledTestPaths = [ # Exclude tests that require oslotest "tests/test_jsonpath_rw_ext.py" ]; - pythonImportsCheck = [ "jsonpath_ng" ]; + pythonImportsCheck = [ + "jsonpath_ng" + ]; meta = with lib; { description = "JSONPath implementation"; From 93dd304d02157a6e9a20bd57f87a4dbcaef00c9e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Sep 2023 13:56:05 +0200 Subject: [PATCH 4/4] python310Packages.jsonpath-ng: adjust inputs --- pkgs/development/python-modules/jsonpath-ng/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix index 21ea81637d00..edda6a341e32 100644 --- a/pkgs/development/python-modules/jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/jsonpath-ng/default.nix @@ -4,12 +4,13 @@ , ply , pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "jsonpath-ng"; version = "1.6.0"; - format = "pyproject"; + format = "setuptools"; disabled = pythonOlder "3.7"; @@ -22,6 +23,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ ply + setuptools ]; nativeCheckInputs = [