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