1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "json-api-doc"; 12 version = "0.15.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.10"; 16 17 src = fetchFromGitHub { 18 owner = "julien-duponchelle"; 19 repo = "json-api-doc"; 20 tag = "v${version}"; 21 hash = "sha256-r6XduJ2GIr2hGen6hoNIdE3yqPzHJ9xAFOSbMgErsNA="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace-fail "'pytest-runner'," "" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "json_api_doc" ]; 34 35 meta = { 36 description = "JSON API parser returning a simple Python dictionary"; 37 homepage = "https://github.com/julien-duponchelle/json-api-doc"; 38 changelog = "https://github.com/julien-duponchelle/json-api-doc/releases/tag/v${version}"; 39 license = lib.licenses.asl20; 40 maintainers = with lib.maintainers; [ fab ]; 41 }; 42}