From cd84730ae6014f90a7fd571523c90ae54929b2e7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Jan 2025 08:58:34 +0100 Subject: [PATCH] python313Packages.aniso8601: refactor - add changelog to meta - update disabled --- .../python-modules/aniso8601/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aniso8601/default.nix b/pkgs/development/python-modules/aniso8601/default.nix index d29c26e2ce99..bfc8cb22c8ac 100644 --- a/pkgs/development/python-modules/aniso8601/default.nix +++ b/pkgs/development/python-modules/aniso8601/default.nix @@ -1,33 +1,38 @@ { lib, buildPythonPackage, - python-dateutil, fetchPypi, - isPy3k, - mock, pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "aniso8601"; version = "10.0.0"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.10"; src = fetchPypi { inherit pname version; hash = "sha256-/x0PwjRmiMYsAVFUcTasMOMiiW7YrzFu92AsR9qUJs8="; }; - propagatedBuildInputs = [ python-dateutil ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock; + dependencies = [ python-dateutil ]; + + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "aniso8601" ]; meta = with lib; { description = "Python Parser for ISO 8601 strings"; homepage = "https://bitbucket.org/nielsenb/aniso8601"; - license = with licenses; [ bsd3 ]; + changelog = "https://bitbucket.org/nielsenb/aniso8601/src/v${version}/CHANGELOG.rst"; + license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; }