Merge pull request #190457 from firefly-cpp/toml-adapt

This commit is contained in:
Sandro 2022-09-10 01:27:28 +02:00 committed by GitHub
commit 2eb8607fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, toml
}:
buildPythonPackage rec {
pname = "toml-adapt";
version = "0.2.8";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = pname;
rev = version;
sha256 = "sha256-9auZZl6c+EfAO/2QaHW5BI1aDZkIIGU+fwzudIdFWqI=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
click
toml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"toml_adapt"
];
meta = with lib; {
description = "A simple Command-line interface for manipulating toml files";
homepage = "https://github.com/firefly-cpp/toml-adapt";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
}

View File

@ -10963,6 +10963,8 @@ in {
toml = callPackage ../development/python-modules/toml { };
toml-adapt = callPackage ../development/python-modules/toml-adapt { };
tomli = callPackage ../development/python-modules/tomli { };
tomli-w = callPackage ../development/python-modules/tomli-w { };