python311Packages.simplefix: switch to unittestCheckHook
- add pythonImportsCheck
This commit is contained in:
parent
43185ef7d6
commit
1545da4c45
1 changed files with 21 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue