1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "json-flatten";
11 version = "0.3.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "simonw";
16 repo = "json-flatten";
17 tag = version;
18 hash = "sha256-zAaunWuFAokC16FwHRHgyvq27pNUEGXJfSqTQ1wvXE8=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [
30 "json_flatten"
31 ];
32
33 meta = {
34 description = "Functions for flattening a JSON object to a single dictionary of pairs";
35 license = lib.licenses.asl20;
36 homepage = "https://github.com/simonw/json-flatten";
37 maintainers = with lib.maintainers; [ ethancedwards8 ];
38 changelog = "https://github.com/simonw/json-flatten/releases/tag/${version}";
39 };
40}