nautilus: fix cross compilation (#373662)
[NixPkgs.git] / pkgs / development / python-modules / tzlocal / default.nix
bloba4e6ba12061c02cee0600a4f1f0c7ad3acb459b6
2   lib,
3   stdenv,
4   buildPythonPackage,
5   pythonOlder,
6   fetchPypi,
7   setuptools,
8   pytest-mock,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "tzlocal";
14   version = "5.2"; # version needs to be compatible with APScheduler
16   disabled = pythonOlder "3.8";
18   pyproject = true;
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-jTmSBVePGpNCgWQJzB5GqT69V1XjnqLYUzS+qRG/Dm4=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   nativeCheckInputs = [
28     pytest-mock
29     pytestCheckHook
30   ];
32   disabledTests = [
33     "test_conflicting"
34     "test_noconflict"
35     "test_symlink_localtime"
36   ] ++ lib.optional stdenv.hostPlatform.isDarwin "test_assert_tz_offset";
38   pythonImportsCheck = [ "tzlocal" ];
40   meta = with lib; {
41     description = "Tzinfo object for the local timezone";
42     homepage = "https://github.com/regebro/tzlocal";
43     changelog = "https://github.com/regebro/tzlocal/blob/${version}/CHANGES.txt";
44     license = licenses.cddl;
45     maintainers = with maintainers; [ dotlambda ];
46   };