python311Packages.kaptan: fix tests

by making the test phase explicit.
This commit is contained in:
Martin Weinelt
2023-09-27 15:34:43 +02:00
parent bc7b9a88c2
commit 7bb85c7f1c
@@ -2,16 +2,18 @@
, buildPythonPackage
, fetchPypi
, pyyaml
, pytest
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "kaptan";
version = "0.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
};
postPatch = ''
@@ -20,9 +22,17 @@ buildPythonPackage rec {
substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
'';
propagatedBuildInputs = [ pyyaml ];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Configuration manager for python applications";