mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
26 lines
648 B
Nix
26 lines
648 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pytz }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tzlocal";
|
|
version = "2.1"; # version needs to be compatible with APScheduler
|
|
|
|
propagatedBuildInputs = [ pytz ];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44";
|
|
};
|
|
|
|
# test fail (timezone test fail)
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|