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