depot/third_party/nixpkgs/pkgs/development/python-modules/tomli-w/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

30 lines
654 B
Nix

{ lib
, buildPythonPackage
, callPackage
, fetchFromGitHub
, flit-core
}:
buildPythonPackage rec {
pname = "tomli-w";
version = "1.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "hukkin";
repo = pname;
rev = version;
sha256 = "sha256-wZSC5uOi1JUeKXIli1I8/Vo0wGsv9Q1I84dAMQQP95w=";
};
nativeBuildInputs = [ flit-core ];
pythonImportsCheck = [ "tomli_w" ];
meta = with lib; {
description = "A write-only counterpart to Tomli, which is a read-only TOML parser";
homepage = "https://github.com/hukkin/tomli-w";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}