83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
48 lines
848 B
Nix
48 lines
848 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "toml-adapt";
|
|
version = "0.2.11";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-7gQZCjsCtzvmV5NPZNAW4d34TkKemH9FgeN0Iwydwgc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|