1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9 toml, 10}: 11 12buildPythonPackage rec { 13 pname = "toml-adapt"; 14 version = "0.3.4"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "firefly-cpp"; 21 repo = "toml-adapt"; 22 tag = version; 23 hash = "sha256-GtwE8P4uP3F6wOrzv/vZ4CJR4tzF7CxpWV/8X/hBZhc="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ 29 click 30 toml 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "toml_adapt" ]; 36 37 meta = with lib; { 38 description = "Simple Command-line interface for manipulating toml files"; 39 homepage = "https://github.com/firefly-cpp/toml-adapt"; 40 changelog = "https://github.com/firefly-cpp/toml-adapt/releases/tag/${src.tag}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ firefly-cpp ]; 43 mainProgram = "toml-adapt"; 44 }; 45}