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.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-cblS5XIWiJN/sCz501TbzweFBmFJ0oVeRFMevdK2XXM=";
18 };
19
20 propagatedBuildInputs =
21 lib.optionals isPy27 [ enum34 functools32 ]
22 ++ lib.optional isPy27 typing;
23
24 nativeCheckInputs = [
25 pyaml
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "tomlkit" ];
30
31 meta = with lib; {
32 homepage = "https://github.com/sdispater/tomlkit";
33 changelog = "https://github.com/sdispater/tomlkit/blob/${version}/CHANGELOG.md";
34 description = "Style-preserving TOML library for Python";
35 license = licenses.mit;
36 maintainers = with maintainers; [ jakewaksbaum ];
37 };
38}