2021-02-27 09:58:56 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hypothesis
|
|
|
|
, lib
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "json5";
|
2022-08-28 12:10:03 +02:00
|
|
|
version = "0.9.9";
|
2021-02-27 09:58:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dpranke";
|
|
|
|
repo = "pyjson5";
|
|
|
|
rev = "v${version}";
|
2022-08-28 12:10:03 +02:00
|
|
|
hash = "sha256-0ommoTv5q7YuLNF+ZPWW/Xg/8CwnPrF7rXJ+eS0joUs=";
|
2021-02-27 09:58:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-08-28 12:10:03 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"json5"
|
|
|
|
];
|
2021-07-08 11:36:07 +02:00
|
|
|
|
2021-02-27 09:58:56 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dpranke/pyjson5";
|
|
|
|
description = "A Python implementation of the JSON5 data format";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ veehaitch ];
|
|
|
|
};
|
|
|
|
}
|