depot/third_party/nixpkgs/pkgs/development/python-modules/holidays/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

43 lines
819 B
Nix

{ lib
, buildPythonPackage
, convertdate
, python-dateutil
, fetchPypi
, hijri-converter
, korean-lunar-calendar
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "holidays";
version = "0.11.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-f6/YRvZ/Drfh+cGcOPSnlnvweu1d7S3XqKovk3sOoBs=";
};
propagatedBuildInputs = [
convertdate
python-dateutil
hijri-converter
korean-lunar-calendar
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "holidays" ];
meta = with lib; {
homepage = "https://github.com/dr-prodigy/python-holidays";
description = "Generate and work with holidays in Python";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}