From 88d93f50320574f10f2e72e669582c30984928c9 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Thu, 17 Mar 2022 22:31:53 -0700 Subject: [PATCH] python3Packages.flatdict: init at 4.0.0 --- .../python-modules/flatdict/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/flatdict/default.nix diff --git a/pkgs/development/python-modules/flatdict/default.nix b/pkgs/development/python-modules/flatdict/default.nix new file mode 100644 index 000000000000..186118d30100 --- /dev/null +++ b/pkgs/development/python-modules/flatdict/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "flatdict"; + version = "4.0.0"; + + src = fetchFromGitHub { + owner = "gmr"; + repo = pname; + rev = version; + hash = "sha256-qH4MMDSXf92BPavnRdCka6lRoWZg+2KnHpHA8kt5JaM="; + }; + + pythonImportsCheck = [ + "flatdict" + ]; + + meta = with lib; { + description = "Python module for interacting with nested dicts as a single level dict with delimited keys"; + homepage = "https://github.com/gmr/flatdict"; + license = licenses.bsd3; + maintainers = with maintainers; [ lovesegfault ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a8c3a4de4210..a77639b027ea 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3027,6 +3027,8 @@ in { inherit (pkgs) flatbuffers; }; + flatdict = callPackage ../development/python-modules/flatdict { }; + flatten-dict = callPackage ../development/python-modules/flatten-dict { }; flax = callPackage ../development/python-modules/flax { };