From 0c6feb64d2e39de3f62deb6b5a14b4d25c5ff6c0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 11:56:19 +0200 Subject: [PATCH] python311Packages.jsonref: 1.0.1 -> 1.1.0 Diff: https://github.com/gazpachoking/jsonref/compare/refs/tags/v1.0.1...v1.1.0 Changelog: https://github.com/gazpachoking/jsonref/releases/tag/v1.1.0 --- .../python-modules/jsonref/default.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/jsonref/default.nix b/pkgs/development/python-modules/jsonref/default.nix index abd3fad2fd4c..dc12c60aed48 100644 --- a/pkgs/development/python-modules/jsonref/default.nix +++ b/pkgs/development/python-modules/jsonref/default.nix @@ -1,24 +1,29 @@ { lib , buildPythonPackage , fetchFromGitHub -, poetry-core +, pdm-backend +, pdm-pep517 , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "jsonref"; - version = "1.0.1"; + version = "1.1.0"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "gazpachoking"; repo = "jsonref"; rev = "refs/tags/v${version}"; - hash = "sha256-8p0BmDZGpQ6Dl9rkqRKZKc0doG5pyXpfcVpemmetLhs="; + hash = "sha256-tOhabmqCkktJUZjCrzjOjUGgA/X6EVz0KqehyLtigfc="; }; nativeBuildInputs = [ - poetry-core + pdm-backend + pdm-pep517 ]; nativeCheckInputs = [ @@ -29,11 +34,15 @@ buildPythonPackage rec { "tests.py" ]; + pythonImportsCheck = [ + "jsonref" + ]; + meta = with lib; { description = "An implementation of JSON Reference for Python"; - homepage = "https://github.com/gazpachoking/jsonref"; - license = licenses.mit; + homepage = "https://github.com/gazpachoking/jsonref"; + changelog = "https://github.com/gazpachoking/jsonref/releases/tag/v${version}"; + license = licenses.mit; maintainers = with maintainers; [ ]; - platforms = platforms.all; }; }