Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 831 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27, isPy34 2, enum34, functools32, typing 3}: 4 5buildPythonPackage rec { 6 pname = "tomlkit"; 7 version = "0.5.3"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1hjfzlb6y694pkadygcaq1n63di97pxgq2zpc74in1axc5166l6n"; 12 }; 13 14 propagatedBuildInputs = 15 lib.optionals isPy27 [ enum34 functools32 ] 16 ++ lib.optional (isPy27 || isPy34) 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}