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