Files
nixpkgs/pkgs/development/python-modules/jsonslicer/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

49 lines
933 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
pytestCheckHook,
unittestCheckHook,
setuptools,
pkg-config,
yajl,
}:
buildPythonPackage rec {
pname = "jsonslicer";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "AMDmi3";
repo = "jsonslicer";
tag = version;
hash = "sha256-nPifyqr+MaFqoCYFbFSSBDjvifpX0CFnHCdMCvhwYTA=";
};
build-system = [
setuptools
pkg-config
];
buildInputs = [ yajl ];
nativeCheckInputs = [
pytestCheckHook
unittestCheckHook
];
pythonImportsCheck = [ "jsonslicer" ];
passthru.updateScript = gitUpdater { };
meta = {
description = "Stream JSON parser for Python";
homepage = "https://github.com/AMDmi3/jsonslicer";
changelog = "https://github.com/AMDmi3/jsonslicer/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jopejoe1 ];
};
}