1{ lib, buildPythonPackage, fetchPypi, isPy27 2, enum34, functools32, typing ? null 3}: 4 5buildPythonPackage rec { 6 pname = "tomlkit"; 7 version = "0.7.2"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "d7a454f319a7e9bd2e249f239168729327e4dd2d27b17dc68be264ad1ce36754"; 12 }; 13 14 propagatedBuildInputs = 15 lib.optionals isPy27 [ enum34 functools32 ] 16 ++ lib.optional isPy27 typing; 17 18 # The Pypi tarball doesn't include tests, and the GitHub source isn't 19 # buildable until we bootstrap poetry, see 20 # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 21 doCheck = false; 22 23 meta = with lib; { 24 homepage = "https://github.com/sdispater/tomlkit"; 25 description = "Style-preserving TOML library for Python"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ jakewaksbaum ]; 28 }; 29}