From 914545b23faded2c3abfed5babdf58e090fd0fb0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 22:28:33 +0200 Subject: [PATCH] python3Packages.minidb: 2.0.5 -> 2.0.6 --- .../python-modules/minidb/default.nix | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/minidb/default.nix b/pkgs/development/python-modules/minidb/default.nix index 599b1d70d42e..5723138ecc3e 100644 --- a/pkgs/development/python-modules/minidb/default.nix +++ b/pkgs/development/python-modules/minidb/default.nix @@ -1,32 +1,37 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, nose -, pytest +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "minidb"; - version = "2.0.5"; - disabled = !isPy3k; + version = "2.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "thp"; repo = "minidb"; rev = version; - sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg="; + hash = "sha256-H7W+GBapT9uJgbPlARp4ZLKTN7hZlF/FbNo7rObqDM4="; }; - # module imports are incompatible with python2 - doCheck = isPy3k; - checkInputs = [ nose pytest ]; - checkPhase = '' - pytest - ''; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "minidb" + ]; meta = with lib; { - description = "A simple SQLite3-based store for Python objects"; + description = "SQLite3-based store for Python objects"; homepage = "https://thp.io/2010/minidb/"; license = licenses.isc; - maintainers = [ maintainers.tv ]; + maintainers = with maintainers; [ tv ]; }; - } +