From c826dbd65f1955ff5e757d931159449824a3d782 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 25 Nov 2024 21:30:08 +0000 Subject: [PATCH] python312Packages.tinydb: 4.8.0 -> 4.8.2 --- .../python-modules/tinydb/default.nix | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/tinydb/default.nix b/pkgs/development/python-modules/tinydb/default.nix index 5ad3e1fb4cda..f62cefdbbd9f 100644 --- a/pkgs/development/python-modules/tinydb/default.nix +++ b/pkgs/development/python-modules/tinydb/default.nix @@ -5,43 +5,41 @@ fetchFromGitHub, poetry-core, pytestCheckHook, - pycodestyle, + pytest-cov-stub, pyyaml, }: buildPythonPackage rec { pname = "tinydb"; - version = "4.8.0"; - disabled = pythonOlder "3.5"; - format = "pyproject"; + version = "4.8.2"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "msiemens"; - repo = pname; + repo = "tinydb"; rev = "refs/tags/v${version}"; - hash = "sha256-sdWcpkjC8LtOI1k0Wyk4vLXBcwYe1vuQON9J7P8JPxA="; + hash = "sha256-N/45XB7ZuZiq25v6DQx4K9NRVnBbUHPeiKKbxQ9YB3E="; }; - nativeBuildInputs = [ poetry-core ]; - - postPatch = '' - substituteInPlace pytest.ini \ - --replace "--cov-append --cov-report term --cov tinydb" "" - ''; + build-system = [ + poetry-core + ]; nativeCheckInputs = [ pytestCheckHook - pycodestyle + pytest-cov-stub pyyaml ]; pythonImportsCheck = [ "tinydb" ]; - meta = with lib; { + meta = { description = "Lightweight document oriented database written in Python"; homepage = "https://tinydb.readthedocs.org/"; changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html"; - license = licenses.mit; - maintainers = with maintainers; [ marcus7070 ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ marcus7070 ]; }; }