lol

python311Packages.simplefix: switch to unittestCheckHook

- add pythonImportsCheck

+21 -5
+21 -5
pkgs/development/python-modules/simplefix/default.nix
··· 1 - { lib, python, buildPythonPackage, fetchFromGitHub }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , unittestCheckHook 6 + }: 2 7 3 8 buildPythonPackage rec { 4 9 pname = "simplefix"; 5 10 version = "1.0.17"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 6 14 7 15 src = fetchFromGitHub { 8 16 repo = "simplefix"; ··· 11 19 hash = "sha256-D85JW3JRQ1xErw6krMbAg94WYjPi76Xqjv/MGNMY5ZU="; 12 20 }; 13 21 14 - checkPhase = '' 15 - cd test 16 - ${python.interpreter} -m unittest all 17 - ''; 22 + nativeCheckInputs = [ 23 + unittestCheckHook 24 + ]; 25 + 26 + pythonImportsCheck = [ 27 + "simplefix" 28 + ]; 29 + 30 + unittestFlagsArray = [ 31 + "-s" 32 + "test" 33 + ]; 18 34 19 35 meta = with lib; { 20 36 description = "Simple FIX Protocol implementation for Python";