python3Packages.javaproperties: add setuptools to nativeBuildInputs

and migrate checkphase to the pytest hook.
This commit is contained in:
Martin Weinelt 2022-09-16 17:55:12 +02:00
parent 266ce4914f
commit 173569088a

View File

@ -1,7 +1,9 @@
{ lib, buildPythonPackage, fetchFromGitHub
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, six
, pytest
, pytestCheckHook
, python-dateutil
}:
@ -17,14 +19,26 @@ buildPythonPackage rec {
sha256 = "16rcdw5gd4a21v2xb1j166lc9z2dqcv68gqvk5mvpnm0x6nwadgp";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ six ];
nativeBuildInputs = [
setuptools
];
checkInputs = [ python-dateutil pytest ];
checkPhase = ''
rm tox.ini
pytest -k 'not dumps and not time' --ignore=test/test_propclass.py
'';
propagatedBuildInputs = [
six
];
checkInputs = [
python-dateutil
pytestCheckHook
];
disabledTests = [
"time"
];
disabledTestPaths = [
"test/test_propclass.py"
];
meta = with lib; {
description = "Microsoft Azure API Management Client Library for Python";