From 6cd9fe299cc4500eae556835638917ba81e403aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 14 Feb 2021 07:36:01 +0100 Subject: [PATCH] pythonPackages.tzdata: init at 2021.1 --- .../python-modules/tzdata/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/python-modules/tzdata/default.nix diff --git a/pkgs/development/python-modules/tzdata/default.nix b/pkgs/development/python-modules/tzdata/default.nix new file mode 100644 index 000000000000..0772b73a15cb --- /dev/null +++ b/pkgs/development/python-modules/tzdata/default.nix @@ -0,0 +1,21 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "tzdata"; + version = "2021.1"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-4ZxzUfiHUioaxznSEEHlkt3ebdG3ZP3vqPeys1UdPTg="; + }; + + pythonImportsCheck = [ "tzdata" ]; + + meta = with lib; { + description = "Provider of IANA time zone data"; + homepage = "https://github.com/python/tzdata"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c8229a8c61bf..ff571ab78808 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8089,6 +8089,8 @@ in { typogrify = callPackage ../development/python-modules/typogrify { }; + tzdata = callPackage ../development/python-modules/tzdata { }; + tzlocal = callPackage ../development/python-modules/tzlocal { }; uamqp = callPackage ../development/python-modules/uamqp {