depot/third_party/nixpkgs/pkgs/development/python-modules/toml-adapt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
972 B
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
toml,
}:
buildPythonPackage rec {
pname = "toml-adapt";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = "toml-adapt";
rev = "refs/tags/${version}";
hash = "sha256-KD5dTr/wxFbDg3AbfE0jUbgNjvxqDmbHwjY5Dmp6JFI=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
click
toml
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "toml_adapt" ];
meta = with lib; {
description = "Simple Command-line interface for manipulating toml files";
homepage = "https://github.com/firefly-cpp/toml-adapt";
changelog = "https://github.com/firefly-cpp/toml-adapt/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
mainProgram = "toml-adapt";
};
}