38 lines
709 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
poetry-core,
click,
}:
buildPythonPackage rec {
pname = "click-datetime";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
pname = "click_datetime";
inherit version;
hash = "sha256-nzXtP6sT9VMiHOjFqJXlGF1zYJk8Ud1/hii5tPY2kws=";
};
build-system = [ poetry-core ];
pythonRemoveDeps = [ "wheel" ];
dependencies = [ click ];
# no tests
doCheck = false;
pythonImportsCheck = [ "click_datetime" ];
meta = with lib; {
description = "Datetime type support for click";
homepage = "https://github.com/click-contrib/click-datetime";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}