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