depot/third_party/nixpkgs/pkgs/development/python-modules/toml-adapt/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
862 B
Nix

{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, toml
}:
buildPythonPackage rec {
pname = "toml-adapt";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-BI0yZlut9PEupa597KN4qdVABOiOLwFpovN8L1lfUmk=";
};
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 ];
};
}