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