Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 29 lines 825 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, enum34, functools32, typing 3}: 4 5buildPythonPackage rec { 6 pname = "tomlkit"; 7 version = "0.7.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "ac57f29693fab3e309ea789252fcce3061e19110085aa31af5446ca749325618"; 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}