Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / toml-adapt / default.nix
blob6af7f0940ed20972067ab0ebc665ed3c23f55a91
1 { lib
2 , buildPythonPackage
3 , click
4 , fetchFromGitHub
5 , poetry-core
6 , pytestCheckHook
7 , pythonOlder
8 , toml
9 }:
11 buildPythonPackage rec {
12   pname = "toml-adapt";
13   version = "0.3.3";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "firefly-cpp";
20     repo = "toml-adapt";
21     rev = "refs/tags/${version}";
22     hash = "sha256-KD5dTr/wxFbDg3AbfE0jUbgNjvxqDmbHwjY5Dmp6JFI=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27   ];
29   propagatedBuildInputs = [
30     click
31     toml
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "toml_adapt"
40   ];
42   meta = with lib; {
43     description = "A simple Command-line interface for manipulating toml files";
44     homepage = "https://github.com/firefly-cpp/toml-adapt";
45     changelog = "https://github.com/firefly-cpp/toml-adapt/releases/tag/${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ firefly-cpp ];
48     mainProgram = "toml-adapt";
49   };