depot/third_party/nixpkgs/pkgs/development/python-modules/convertdate/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

43 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pymeeus
, pytz
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "convertdate";
version = "2.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fitnr";
repo = pname;
rev = "v${version}";
hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
};
propagatedBuildInputs = [
pymeeus
pytz
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"convertdate"
];
meta = with lib; {
description = "Utils for converting between date formats and calculating holidays";
homepage = "https://github.com/fitnr/convertdate";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}