1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage {
9 pname = "jstyleson";
10 version = "0.0.2";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "linjackson78";
15 repo = "jstyleson";
16 # https://github.com/linjackson78/jstyleson/issues/6
17 rev = "544b9fdb43339cdd15dd03dc69a6d0f36dd73241";
18 hash = "sha256-s/0DDfy+07TuUNjHPqKRT3xMMQl6spZCacB7Dweof7A=";
19 };
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "jstyleson" ];
24
25 meta = with lib; {
26 description = "Python library to parse JSON with js-style comments";
27 homepage = "https://github.com/linjackson78/jstyleson";
28 license = licenses.mit;
29 maintainers = with maintainers; [ ambroisie ];
30 };
31}