From 6efb262cdbaf7d073f9f3691666aef0acede559b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 31 Mar 2025 15:13:38 +0200 Subject: [PATCH] python313Packages.decorator: 5.1.1 -> 5.2.1 https://github.com/micheles/decorator/blob/5.2.1/CHANGES.md --- .../python-modules/decorator/default.nix | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix index 5a0bc26763a4..6f7246ae9397 100644 --- a/pkgs/development/python-modules/decorator/default.nix +++ b/pkgs/development/python-modules/decorator/default.nix @@ -1,27 +1,33 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "decorator"; - version = "5.1.1"; - format = "setuptools"; + version = "5.2.1"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Y3mWIRA2tjhe+RQ15PriKYlHL51XH6uoknuoJTrLwzA="; + src = fetchFromGitHub { + owner = "micheles"; + repo = "decorator"; + tag = version; + hash = "sha256-UBjZ8LdgJ6iLBjNTlA3up0qAVBqTSZMJt7oEhUo3ZEo="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "decorator" ]; nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "src/tests/test.py" ]; + pytestFlagsArray = [ "tests/test.py " ]; meta = with lib; { + changelog = "https://github.com/micheles/decorator/blob/${src.tag}/CHANGES.md"; homepage = "https://github.com/micheles/decorator"; description = "Better living through Python with decorators"; license = licenses.bsd2;