Merge pull request #335174 from jopejoe1/jsonslicer-clean
python3Packages.jsonslicer: add tests and changelogs
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
pytestCheckHook,
|
||||
unittestCheckHook,
|
||||
setuptools,
|
||||
pkg-config,
|
||||
yajl,
|
||||
@@ -16,7 +18,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "AMDmi3";
|
||||
repo = "jsonslicer";
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-nPifyqr+MaFqoCYFbFSSBDjvifpX0CFnHCdMCvhwYTA=";
|
||||
};
|
||||
|
||||
@@ -27,11 +29,19 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ yajl ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
unittestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "jsonslicer" ];
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Stream JSON parser for Python";
|
||||
homepage = "https://github.com/AMDmi3/jsonslicer";
|
||||
changelog = "https://github.com/AMDmi3/jsonslicer/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jopejoe1 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user