2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2022-10-06 18:32:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jstyleson";
|
|
|
|
version = "0.0.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linjackson78";
|
|
|
|
repo = "jstyleson";
|
|
|
|
# https://github.com/linjackson78/jstyleson/issues/6
|
|
|
|
rev = "544b9fdb43339cdd15dd03dc69a6d0f36dd73241";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-s/0DDfy+07TuUNjHPqKRT3xMMQl6spZCacB7Dweof7A=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "jstyleson" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library to parse JSON with js-style comments";
|
2022-10-06 18:32:54 +00:00
|
|
|
homepage = "https://github.com/linjackson78/jstyleson";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|