2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
toml,
|
2022-09-11 15:47:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "toml-adapt";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.3.3";
|
|
|
|
pyproject = true;
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firefly-cpp";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "toml-adapt";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-KD5dTr/wxFbDg3AbfE0jUbgNjvxqDmbHwjY5Dmp6JFI=";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-11 15:47:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "toml_adapt" ];
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple Command-line interface for manipulating toml files";
|
2022-09-11 15:47:08 +00:00
|
|
|
homepage = "https://github.com/firefly-cpp/toml-adapt";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/firefly-cpp/toml-adapt/releases/tag/${version}";
|
2022-09-11 15:47:08 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "toml-adapt";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
}
|