3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/tzlocal/default.nix
2021-11-18 22:37:10 -08:00

45 lines
861 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pytz-deprecation-shim
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tzlocal";
version = "4.1"; # version needs to be compatible with APScheduler
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DygBWsaKXAZyEEAKkZf8XTa6m8P46vHaPL1ZrN/tngk=";
};
propagatedBuildInputs = [
pytz-deprecation-shim
];
checkInputs = [
pytest-mock
pytestCheckHook
];
disabledTests = [
"test_conflicting"
"test_noconflict"
"test_symlink_localtime"
];
pythonImportsCheck = [ "tzlocal" ];
meta = with lib; {
description = "Tzinfo object for the local timezone";
homepage = "https://github.com/regebro/tzlocal";
license = licenses.cddl;
maintainers = with maintainers; [ dotlambda ];
};
}