1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "flatten-json";
13 version = "0.1.13";
14 pyproject = true;
15
16 disabled = pythonOlder "3.10";
17
18 src = fetchFromGitHub {
19 owner = "amirziai";
20 repo = "flatten";
21 rev = "v${version}";
22 hash = "sha256-ViOLbfJtFWkDQ5cGNYerTk2BqVg5f5B3hZ96t0uvhpk=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ six ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "flatten_json" ];
32
33 meta = {
34 description = "Flatten JSON in Python";
35 homepage = "https://github.com/amirziai/flatten";
36 changelog = "https://github.com/amirziai/flatten/releases/tag/v${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}