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