From a11c0d0680786f99927ae944a8e6ba479fb82ec7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Feb 2021 20:54:02 +0100 Subject: [PATCH] python3Packages.immutables: enable tests --- .../python-modules/immutables/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/immutables/default.nix b/pkgs/development/python-modules/immutables/default.nix index 41986435756..196ea78bba7 100644 --- a/pkgs/development/python-modules/immutables/default.nix +++ b/pkgs/development/python-modules/immutables/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "immutables"; @@ -10,10 +15,14 @@ buildPythonPackage rec { sha256 = "3713ab1ebbb6946b7ce1387bb9d1d7f5e09c45add58c2a2ee65f963c171e746b"; }; - meta = { + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "immutables" ]; + + meta = with lib; { description = "An immutable mapping type for Python"; homepage = "https://github.com/MagicStack/immutables"; - license = with lib.licenses; [ asl20 ]; - maintainers = with lib.maintainers; [ catern ]; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ catern ]; }; }