From abbb7c533718e9bc918845a31a87e846847060f5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 27 Dec 2022 20:18:41 +0100 Subject: [PATCH] python310Packages.aiosqlite: 0.17.0 -> 0.18.0 Diff: https://github.com/omnilib/aiosqlite/compare/refs/tags/v0.17.0...v0.18.0 Changelog: https://github.com/omnilib/aiosqlite/blob/v0.18.0/CHANGELOG.md --- .../python-modules/aiosqlite/default.nix | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/aiosqlite/default.nix b/pkgs/development/python-modules/aiosqlite/default.nix index a7315b9db6b..eb85dccf50d 100644 --- a/pkgs/development/python-modules/aiosqlite/default.nix +++ b/pkgs/development/python-modules/aiosqlite/default.nix @@ -1,29 +1,36 @@ { lib , aiounittest , buildPythonPackage -, fetchPypi -, isPy27 +, fetchFromGitHub +, flit-core , pytestCheckHook -, typing-extensions +, pythonOlder }: buildPythonPackage rec { pname = "aiosqlite"; - version = "0.17.0"; - disabled = isPy27; + version = "0.18.0"; + format = "pyproject"; - src = fetchPypi { - inherit pname version; - hash = "sha256-8OaswkvEhkFJJnrIL7Rt+zvkRV+Z/iHfgmCcxua67lE="; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "omnilib"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-yPGSKqjOz1EY5/V0oKz2EiZ90q2O4TINoXdxHuB7Gqk="; }; + nativeBuildInputs = [ + flit-core + ]; + checkInputs = [ aiounittest pytestCheckHook - typing-extensions ]; - # tests are not pick-up automatically by the hook + # Tests are not pick-up automatically by the hook pytestFlagsArray = [ "aiosqlite/tests/*.py" ];