at master 807 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 tomli, 8}: 9 10buildPythonPackage rec { 11 pname = "tomli-w"; 12 version = "1.2.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "hukkin"; 17 repo = "tomli-w"; 18 rev = version; 19 hash = "sha256-Du37ySvAL9iwGec5wbWxwLTYm+kcDSOs5OJ5Sw7R87g="; 20 }; 21 22 build-system = [ flit-core ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 tomli 27 ]; 28 29 pythonImportsCheck = [ "tomli_w" ]; 30 31 meta = with lib; { 32 description = "Write-only counterpart to Tomli, which is a read-only TOML parser"; 33 homepage = "https://github.com/hukkin/tomli-w"; 34 changelog = "https://github.com/hukkin/tomli-w/blob/${src.rev}/CHANGELOG.md"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ lovesegfault ]; 37 }; 38}