Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pkgs/development/python-modules/poetry-core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
, pytest-mock
, pytestCheckHook
, setuptools
, tomlkit
, virtualenv
}:

Expand Down Expand Up @@ -54,7 +53,6 @@ buildPythonPackage rec {
pytest-mock
pytestCheckHook
setuptools
tomlkit
virtualenv
];

Expand Down
8 changes: 6 additions & 2 deletions pkgs/development/python-modules/tomlkit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@
, functools32, typing ? null
, pytestCheckHook
, pyaml
, poetry-core
}:

buildPythonPackage rec {
pname = "tomlkit";
version = "0.11.6";
version = "0.11.8";
format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-cblS5XIWiJN/sCz501TbzweFBmFJ0oVeRFMevdK2XXM=";
hash = "sha256-kzD8f6odtntUGyjmIBjBfSC+czF30pChOyTGLRYU4MM=";
};

nativeBuildInputs = [ poetry-core ];

propagatedBuildInputs =
lib.optionals isPy27 [ enum34 functools32 ]
++ lib.optional isPy27 typing;
Expand Down
29 changes: 29 additions & 0 deletions pkgs/pkgs-lib/tests/formats.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,35 @@ in runBuildTests {
'';
};

# see https://github.com/NixOS/nixpkgs/issues/237521 for this particular test
testTomlSemantics = {
drv = evalFormat formats.toml {} {
processors = {
override = [
{ tags = { cluster = "staging"; }; }
];
rename = [
{
replace = [
{ dest = "ceph_telegraf_check"; measurement = "exec"; }
];
}
];
};
};
expected = ''
[processors]
[[processors.override]]
[processors.override.tags]
cluster = "staging"

[[processors.rename]]
[[processors.rename.replace]]
dest = "ceph_telegraf_check"
measurement = "exec"
'';
};

# This test is responsible for
# 1. testing type coercions
# 2. providing a more readable example test
Expand Down