mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
654 B
Nix
35 lines
654 B
Nix
{ buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hypothesis
|
|
, lib
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "json5";
|
|
version = "0.9.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dpranke";
|
|
repo = "pyjson5";
|
|
rev = "v${version}";
|
|
hash = "sha256-0ommoTv5q7YuLNF+ZPWW/Xg/8CwnPrF7rXJ+eS0joUs=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"json5"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|