From 0f4fecced88d78fb6558e67f854d00ff08652417 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 12 Feb 2021 00:55:45 +0100 Subject: [PATCH] python3Packages.marshmallow-sqlalchemy: enable tests --- .../marshmallow-sqlalchemy/default.nix | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix b/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix index e25e1992f56..ba10c89e140 100644 --- a/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix @@ -1,23 +1,35 @@ -{ lib, buildPythonPackage, fetchPypi, - marshmallow, sqlalchemy +{ lib +, buildPythonPackage +, fetchPypi +, marshmallow +, sqlalchemy +, pytest-lazy-fixture +, pytestCheckHook }: buildPythonPackage rec { pname = "marshmallow-sqlalchemy"; version = "0.24.2"; - meta = { - homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy"; - description = "SQLAlchemy integration with marshmallow "; - license = lib.licenses.mit; - }; - src = fetchPypi { inherit pname version; sha256 = "ee3ead3b83de6608c6850ff60515691b0dc556ca226680f8a82b9f785cdb71b1"; }; - propagatedBuildInputs = [ marshmallow sqlalchemy ]; + propagatedBuildInputs = [ + marshmallow + sqlalchemy + ]; + + checkInputs = [ + pytest-lazy-fixture + pytestCheckHook + ]; + + meta = with lib; { + homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy"; + description = "SQLAlchemy integration with marshmallow "; + license = licenses.mit; + }; - doCheck = false; }