1{
2 lib,
3 buildPythonPackage,
4 callPackage,
5 fetchFromGitHub,
6 flit-core,
7}:
8
9buildPythonPackage rec {
10 pname = "tomli-w";
11 version = "1.0.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "hukkin";
16 repo = pname;
17 rev = version;
18 hash = "sha256-wZSC5uOi1JUeKXIli1I8/Vo0wGsv9Q1I84dAMQQP95w=";
19 };
20
21 nativeBuildInputs = [ flit-core ];
22
23 pythonImportsCheck = [ "tomli_w" ];
24
25 meta = with lib; {
26 description = "A write-only counterpart to Tomli, which is a read-only TOML parser";
27 homepage = "https://github.com/hukkin/tomli-w";
28 license = licenses.mit;
29 maintainers = with maintainers; [ lovesegfault ];
30 };
31}