depot/third_party/nixpkgs/pkgs/development/python-modules/clize/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

58 lines
1,006 B
Nix

{
lib,
attrs,
buildPythonPackage,
docutils,
fetchPypi,
od,
pygments,
python-dateutil,
pythonOlder,
repeated-test,
setuptools-scm,
sigtools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "clize";
version = "5.0.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-BH9aRHNgJxirG4VnKn4VMDOHF41agcJ13EKd+sHstRA=";
};
build-system = [ setuptools-scm ];
dependencies = [
attrs
docutils
od
sigtools
];
optional-dependencies = {
datetime = [ python-dateutil ];
};
nativeCheckInputs = [
pygments
unittestCheckHook
python-dateutil
repeated-test
];
pythonImportsCheck = [ "clize" ];
meta = with lib; {
description = "Command-line argument parsing for Python";
homepage = "https://github.com/epsy/clize";
changelog = "https://github.com/epsy/clize/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ ];
};
}