1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, enum34 6, functools32, typing ? null 7, pytestCheckHook 8, pyaml 9}: 10 11buildPythonPackage rec { 12 pname = "tomlkit"; 13 version = "0.11.4"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-MjWpAQ+uVDI+cnw6wG+3IHUv5mNbNCbjedrsYPvUSoM="; 18 }; 19 20 propagatedBuildInputs = 21 lib.optionals isPy27 [ enum34 functools32 ] 22 ++ lib.optional isPy27 typing; 23 24 checkInputs = [ 25 pyaml 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "tomlkit" ]; 30 31 meta = with lib; { 32 homepage = "https://github.com/sdispater/tomlkit"; 33 description = "Style-preserving TOML library for Python"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ jakewaksbaum ]; 36 }; 37}