mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python2Packages.tzlocal: init at 2.1
needed for NixOps 2
This commit is contained in:
parent
f7131dd9a3
commit
c934296ece
36
pkgs/development/python-modules/tzlocal/2.nix
Normal file
36
pkgs/development/python-modules/tzlocal/2.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, pytz
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tzlocal";
|
||||
version = "2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytz
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -644,6 +644,8 @@ with self; with super; {
|
||||
|
||||
typing = callPackage ../development/python-modules/typing { };
|
||||
|
||||
tzlocal = callPackage ../development/python-modules/tzlocal/2.nix { };
|
||||
|
||||
ujson = callPackage ../development/python-modules/ujson/2.nix { };
|
||||
|
||||
umemcache = callPackage ../development/python-modules/umemcache { };
|
||||
|
Loading…
Reference in New Issue
Block a user