From a2b24da9ffc03f41422e8d15c7c92b4fd9269c67 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:14:07 +0200 Subject: [PATCH 1/3] python312Packages.asyncio-dgram: 2.1.2 -> 2.2.0 Diff: https://github.com/jsbronder/asyncio-dgram/compare/refs/tags/v2.1.2...v2.2.0 Changelog: https://github.com/jsbronder/asyncio-dgram/blob/v2.2.0/ChangeLog --- pkgs/development/python-modules/asyncio-dgram/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/asyncio-dgram/default.nix b/pkgs/development/python-modules/asyncio-dgram/default.nix index f999cd3b3b34..cc0629b7463f 100644 --- a/pkgs/development/python-modules/asyncio-dgram/default.nix +++ b/pkgs/development/python-modules/asyncio-dgram/default.nix @@ -9,15 +9,15 @@ buildPythonPackage rec { pname = "asyncio-dgram"; - version = "2.1.2"; + version = "2.2.0"; format = "setuptools"; disabled = pythonOlder "3.5"; src = fetchFromGitHub { owner = "jsbronder"; - repo = pname; - rev = "refs/tagsv${version}"; + repo = "asyncio-dgram"; + rev = "refs/tags/v${version}"; hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; }; From d991adc5f0c5b94158536cfc3491359fa1d1c961 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:15:58 +0200 Subject: [PATCH 2/3] python312Packages.asyncio-dgram: refactor --- .../python-modules/asyncio-dgram/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/asyncio-dgram/default.nix b/pkgs/development/python-modules/asyncio-dgram/default.nix index cc0629b7463f..381144d96b0a 100644 --- a/pkgs/development/python-modules/asyncio-dgram/default.nix +++ b/pkgs/development/python-modules/asyncio-dgram/default.nix @@ -5,14 +5,15 @@ , pytest-asyncio , pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "asyncio-dgram"; version = "2.2.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.5"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "jsbronder"; @@ -21,12 +22,13 @@ buildPythonPackage rec { hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; }; - nativeCheckInputs = [ - pytestCheckHook + build-system = [ + setuptools ]; - checkInputs = [ + nativeCheckInputs = [ pytest-asyncio + pytestCheckHook ]; # OSError: AF_UNIX path too long From 7f62917b4538b0c3fff177fb2dcc0bcc570917b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 May 2024 10:16:15 +0200 Subject: [PATCH 3/3] python312Packages.asyncio-dgram: format with nixfmt --- .../python-modules/asyncio-dgram/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/asyncio-dgram/default.nix b/pkgs/development/python-modules/asyncio-dgram/default.nix index 381144d96b0a..cdd6ac9b9781 100644 --- a/pkgs/development/python-modules/asyncio-dgram/default.nix +++ b/pkgs/development/python-modules/asyncio-dgram/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Eb/9JtgPT2yOlfnn5Ox8M0kcQhSlRCuX8+Rq6amki8Q="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio @@ -40,9 +39,7 @@ buildPythonPackage rec { "test_from_socket_bad_socket" ]; - pythonImportsCheck = [ - "asyncio_dgram" - ]; + pythonImportsCheck = [ "asyncio_dgram" ]; meta = with lib; { description = "Python support for higher level Datagram";