1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pdm-backend 5, pdm-pep517 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "jsonref"; 12 version = "1.1.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "gazpachoking"; 19 repo = "jsonref"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-tOhabmqCkktJUZjCrzjOjUGgA/X6EVz0KqehyLtigfc="; 22 }; 23 24 nativeBuildInputs = [ 25 pdm-backend 26 pdm-pep517 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pytestFlagsArray = [ 34 "tests.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "jsonref" 39 ]; 40 41 meta = with lib; { 42 description = "An implementation of JSON Reference for Python"; 43 homepage = "https://github.com/gazpachoking/jsonref"; 44 changelog = "https://github.com/gazpachoking/jsonref/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ ]; 47 }; 48}