nixpkgs/pkgs/development/python-modules/json5/default.nix
Victor Engmark 32d95f4ef1
python3Packages.json5: Disable hypothesis
Disables tests which can be flaky, such as `test_object_roundtrip`.
Closes #245656.
2024-04-15 08:15:55 +12:00

35 lines
681 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "json5";
version = "0.9.14";
format = "setuptools";
src = fetchFromGitHub {
owner = "dpranke";
repo = "pyjson5";
rev = "v${version}";
hash = "sha256-cshP1kraLENqWuQTlm4HPAP/0ywRRLFOJI8mteWcjR4=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"json5"
];
meta = with lib; {
homepage = "https://github.com/dpranke/pyjson5";
description = "A Python implementation of the JSON5 data format";
mainProgram = "pyjson5";
license = licenses.asl20;
maintainers = with maintainers; [ veehaitch ];
};
}