From 40a0c13a7005cf93e2f51bec75369129f50db2aa Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Tue, 22 Mar 2022 15:58:55 +0100 Subject: [PATCH] python3Packages.nested-lookup: init at 0.2.23 --- .../python-modules/nested-lookup/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/nested-lookup/default.nix diff --git a/pkgs/development/python-modules/nested-lookup/default.nix b/pkgs/development/python-modules/nested-lookup/default.nix new file mode 100644 index 000000000000..7e56158ff145 --- /dev/null +++ b/pkgs/development/python-modules/nested-lookup/default.nix @@ -0,0 +1,36 @@ +{ buildPythonPackage +, fetchFromGitHub +, lib +, pytestCheckHook +, six +}: + +buildPythonPackage rec { + pname = "nested-lookup"; + version = "0.2.23"; + + src = fetchFromGitHub { + owner = "russellballestrini"; + repo = "nested-lookup"; + # https://github.com/russellballestrini/nested-lookup/issues/47 + rev = "c1b0421479efa378545bc71efa3b72882e8fec17"; + sha256 = "sha256-jgfYLSsFLQSsOH4NzbDPKFIG+tWWZ1zTWcZEaX2lthg="; + }; + + propagatedBuildInputs = [ + six + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "nested_lookup" ]; + + meta = with lib; { + description = "Python functions for working with deeply nested documents (lists and dicts)"; + homepage = "https://github.com/russellballestrini/nested-lookup"; + license = licenses.publicDomain; + maintainers = with maintainers; [ tboerger ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 542b0961b017..fc4200744b88 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5460,6 +5460,8 @@ in { nest-asyncio = callPackage ../development/python-modules/nest-asyncio { }; + nested-lookup = callPackage ../development/python-modules/nested-lookup { }; + nestedtext = callPackage ../development/python-modules/nestedtext { }; net2grid = callPackage ../development/python-modules/net2grid { };