Files
nixpkgs/pkgs/development/python-modules/jstyleson/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

32 lines
748 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage {
pname = "jstyleson";
version = "0.0.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "linjackson78";
repo = "jstyleson";
# https://github.com/linjackson78/jstyleson/issues/6
rev = "544b9fdb43339cdd15dd03dc69a6d0f36dd73241";
hash = "sha256-s/0DDfy+07TuUNjHPqKRT3xMMQl6spZCacB7Dweof7A=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jstyleson" ];
meta = {
description = "Python library to parse JSON with js-style comments";
homepage = "https://github.com/linjackson78/jstyleson";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}