From 0dc42c5f41ce89aecae2c3b31444367ac793df20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 7 Jan 2026 04:23:53 -0800 Subject: [PATCH] python3Packages.coreapi: modernize --- .../python-modules/coreapi/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/coreapi/default.nix b/pkgs/development/python-modules/coreapi/default.nix index fb4647409ac8..7c810a0fb0c5 100644 --- a/pkgs/development/python-modules/coreapi/default.nix +++ b/pkgs/development/python-modules/coreapi/default.nix @@ -2,28 +2,31 @@ lib, fetchFromGitHub, buildPythonPackage, + setuptools, django, coreschema, itypes, uritemplate, requests, standard-cgi, - pytest, + pytestCheckHook, }: buildPythonPackage rec { pname = "coreapi"; version = "2.3.3"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { repo = "python-client"; owner = "core-api"; - rev = version; - sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw"; + tag = version; + hash = "sha256-nNUzQbBaT7woI3fmvPvIM0SVDnt4iC2rQ9bDgUeFzLA="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ django coreschema itypes @@ -32,11 +35,7 @@ buildPythonPackage rec { standard-cgi ]; - nativeCheckInputs = [ pytest ]; - checkPhase = '' - cd ./tests - pytest - ''; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Python client library for Core API";