python311Packages.simplefix: switch to unittestCheckHook

- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2023-09-18 09:34:23 +02:00
parent 43185ef7d6
commit 1545da4c45

View file

@ -1,8 +1,16 @@
{ lib, python, buildPythonPackage, fetchFromGitHub }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "simplefix";
version = "1.0.17";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = "simplefix";
@ -11,10 +19,18 @@ buildPythonPackage rec {
hash = "sha256-D85JW3JRQ1xErw6krMbAg94WYjPi76Xqjv/MGNMY5ZU=";
};
checkPhase = ''
cd test
${python.interpreter} -m unittest all
'';
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [
"simplefix"
];
unittestFlagsArray = [
"-s"
"test"
];
meta = with lib; {
description = "Simple FIX Protocol implementation for Python";