depot/third_party/nixpkgs/pkgs/development/python-modules/toml-adapt/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

48 lines
862 B
Nix

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