1{ lib 2, buildPythonPackage 3, fetchPypi 4 5# build-system 6, poetry-core 7 8# tests 9, pytestCheckHook 10, pyyaml 11}: 12 13buildPythonPackage rec { 14 pname = "tomlkit"; 15 version = "0.12.1"; 16 format = "pyproject"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-OOH/jtuZEnPsn2GBJEpqORrDDp9QmOdTVkDqa+l6fIY="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 nativeCheckInputs = [ 28 pyyaml 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "tomlkit" ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/sdispater/tomlkit"; 36 changelog = "https://github.com/sdispater/tomlkit/blob/${version}/CHANGELOG.md"; 37 description = "Style-preserving TOML library for Python"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ jakewaksbaum ]; 40 }; 41}