python312Packages.flatten-json: init at 0.1.13 (#359227)

This commit is contained in:
Fabian Affolter 2024-11-27 08:03:06 +01:00 committed by GitHub
commit 46e6c6d8af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "flatten-json";
version = "0.1.13";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "amirziai";
repo = "flatten";
rev = "v${version}";
hash = "sha256-ViOLbfJtFWkDQ5cGNYerTk2BqVg5f5B3hZ96t0uvhpk=";
};
build-system = [ setuptools ];
dependencies = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flatten_json" ];
meta = {
description = "Flatten JSON in Python";
homepage = "https://github.com/amirziai/flatten";
changelog = "https://github.com/amirziai/flatten/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -4717,6 +4717,8 @@ self: super: with self; {
flatten-dict = callPackage ../development/python-modules/flatten-dict { };
flatten-json = callPackage ../development/python-modules/flatten-json { };
flax = callPackage ../development/python-modules/flax { };
flaxlib = callPackage ../development/python-modules/flaxlib { };