From bbb15eb5d5292470e6973bb6d7ea618e650e58b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 17 Oct 2024 09:24:44 +0200 Subject: [PATCH] python312Packages.asynccmd: refactor --- .../python-modules/asynccmd/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/asynccmd/default.nix b/pkgs/development/python-modules/asynccmd/default.nix index 0cfbf87fc4d3..d9ffae1cf701 100644 --- a/pkgs/development/python-modules/asynccmd/default.nix +++ b/pkgs/development/python-modules/asynccmd/default.nix @@ -4,20 +4,21 @@ fetchFromGitHub, fetchpatch, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "asynccmd"; version = "0.2.4"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "valentinmk"; - repo = pname; - rev = version; - sha256 = "02sa0k0zgwv0y8k00pd1yh4x7k7xqhdikk2c0avpih1204lcw26h"; + repo = "asynccmd"; + rev = "refs/tags/${version}"; + hash = "sha256-0AjOKAEiwHi3AkzMGRvE/czTCfShXQAm8mDz98EESgs="; }; patches = [ @@ -25,10 +26,12 @@ buildPythonPackage rec { (fetchpatch { name = "deprecation-python-38.patch"; url = "https://github.com/valentinmk/asynccmd/commit/12afa60ac07db17e96755e266061f2c88cb545ff.patch"; - sha256 = "0l6sk93gj51qqrpw01a8iiyz14k6dd2z68vr9l9w9vx76l8725yf"; + hash = "sha256-zhdxEDWn78QTTXkj80VrZpLwfYxIBcBvxjgU+Uaa2lA="; }) ]; + build-system = [ setuptools ]; + # Tests are outdated doCheck = false; @@ -37,7 +40,8 @@ buildPythonPackage rec { meta = with lib; { description = "Asyncio implementation of Cmd Python library"; homepage = "https://github.com/valentinmk/asynccmd"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/valentinmk/asynccmd/releases/tag/${version}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }