From 6f99ebff740502d13becd18f1c12d0b47f2e1ecd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 8 Jan 2022 12:34:34 +0100 Subject: [PATCH] python3Packages.orm: 0.1.5 -> 0.3.1 --- .../python-modules/orm/default.nix | 43 +++++++++++-------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/orm/default.nix b/pkgs/development/python-modules/orm/default.nix index f2dd196be942..a1d738890b30 100644 --- a/pkgs/development/python-modules/orm/default.nix +++ b/pkgs/development/python-modules/orm/default.nix @@ -1,43 +1,52 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, databases -, typesystem +, aiomysql , aiosqlite -, pytestCheckHook -, pytest-cov -, typing-extensions +, asyncpg +, buildPythonPackage +, databases +, fetchFromGitHub +, pythonOlder +, typesystem }: buildPythonPackage rec { pname = "orm"; - version = "0.1.5"; + version = "0.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = "orm"; rev = version; - sha256 = "1g70cr0559iyqfzidwh6n2qq6d4dcnrr4sg0jkn1s4qzka828mj7"; + hash = "sha256-nlKEWdqttFnjBnXutlxTy9oILqFzKHKKPJpTtCUbJ5k="; }; propagatedBuildInputs = [ + aiomysql + aiosqlite + asyncpg databases typesystem ]; - checkInputs = [ - aiosqlite - pytestCheckHook - pytest-cov - typing-extensions - ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "typesystem==0.3.1" "typesystem" + ''; - pythonImportsCheck = [ "orm" ]; + # Tests require databases + doCheck = false; + + pythonImportsCheck = [ + "orm" + ]; meta = with lib; { description = "An async ORM"; homepage = "https://github.com/encode/orm"; license = licenses.bsd3; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }