diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2022-03-17 22:53:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 22:53:05 -0700 |
commit | d468bc8524877b97faab506ecf2aaeb422f646d9 (patch) | |
tree | e9279efe5e687ecfb2553ea1c976daa1fc0c4395 | |
parent | c12cec8bc39c3c1153a42032a03a83d149d1e2ac (diff) | |
parent | 88d93f50320574f10f2e72e669582c30984928c9 (diff) |
Merge pull request #164674 from lovesegfault/flatdict-init
python3Packages.flatdict: init at 4.0.0
-rw-r--r-- | pkgs/development/python-modules/flatdict/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
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 { }; |