From d6090ef70fefcfeaaf076729f3e976797e856319 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 15 May 2025 06:17:45 +0000 Subject: [PATCH 1/2] python3Packages.djangorestframework-dataclasses: 1.3.1 -> 1.4.0 --- .../djangorestframework-dataclasses/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix index ac8389b116df..cb40b3b04b20 100644 --- a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix +++ b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "djangorestframework-dataclasses"; - version = "1.3.1"; + version = "1.4.0"; format = "pyproject"; src = fetchFromGitHub { owner = "oxan"; repo = "djangorestframework-dataclasses"; tag = "v${version}"; - hash = "sha256-12EdSaGpsX0qDXgJ2QWYj6qAUbsrITQjWowk+gJFwwY="; + hash = "sha256-nUkR5xTyeBv7ziJ6Mej9TKvMOa5/k+ELBqt4BVam/wk="; }; nativeBuildInputs = [ setuptools ]; From 9745c36f0ea54c4ec1b5e1ae21a20ada03c975b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 15 May 2025 10:58:20 -0700 Subject: [PATCH 2/2] python3Packages.djangorestframework-dataclasses: modernize --- .../djangorestframework-dataclasses/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix index cb40b3b04b20..149993805a6e 100644 --- a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix +++ b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "djangorestframework-dataclasses"; version = "1.4.0"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "oxan"; @@ -18,24 +18,29 @@ buildPythonPackage rec { hash = "sha256-nUkR5xTyeBv7ziJ6Mej9TKvMOa5/k+ELBqt4BVam/wk="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; postPatch = '' patchShebangs manage.py ''; - propagatedBuildInputs = [ djangorestframework ]; + dependencies = [ djangorestframework ]; checkPhase = '' + runHook preCheck + ./manage.py test + + runHook postCheck ''; pythonImportsCheck = [ "rest_framework_dataclasses" ]; - meta = with lib; { - description = " Dataclasses serializer for Django REST framework"; + meta = { + changelog = "https://github.com/oxan/djangorestframework-dataclasses/blob/${src.tag}/CHANGELOG.rst"; + description = "Dataclasses serializer for Django REST framework"; homepage = "https://github.com/oxan/djangorestframework-dataclasses"; - license = licenses.bsd3; + license = lib.licenses.bsd3; maintainers = [ ]; }; }