1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyyaml 5, pytestCheckHook 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "kaptan"; 11 version = "0.6.0"; 12 format = "pyproject"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg="; 17 }; 18 19 postPatch = '' 20 sed -i "s/==.*//g" requirements/test.txt 21 22 substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13' 23 ''; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 pyyaml 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 meta = with lib; { 38 description = "Configuration manager for python applications"; 39 homepage = "https://kaptan.readthedocs.io/"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ ]; 42 }; 43 44}