depot/third_party/nixpkgs/pkgs/development/python-modules/configargparse/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
954 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
pytestCheckHook,
pyyaml,
pythonOlder,
}:
buildPythonPackage rec {
pname = "configargparse";
version = "1.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bw2";
repo = "ConfigArgParse";
rev = "refs/tags/${version}";
hash = "sha256-m77MY0IZ1AJkd4/Y7ltApvdF9y17Lgn92WZPYTCU9tA=";
};
passthru.optional-dependencies = {
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
mock
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "configargparse" ];
meta = with lib; {
description = "Drop-in replacement for argparse";
homepage = "https://github.com/bw2/ConfigArgParse";
changelog = "https://github.com/bw2/ConfigArgParse/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ willibutz ];
};
}