mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-17 10:40:33 +03:00
python3Packages.tzlocal: 2.1 -> 4.1
This commit is contained in:
parent
9cb84a8ce3
commit
3afdc2c8bc
@ -1,19 +1,37 @@
|
||||
{ lib, buildPythonPackage, fetchPypi
|
||||
, pytz }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, pytz-deprecation-shim
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tzlocal";
|
||||
version = "2.1"; # version needs to be compatible with APScheduler
|
||||
version = "4.1"; # version needs to be compatible with APScheduler
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "643c97c5294aedc737780a49d9df30889321cbe1204eac2c2ec6134035a92e44";
|
||||
sha256 = "sha256-DygBWsaKXAZyEEAKkZf8XTa6m8P46vHaPL1ZrN/tngk=";
|
||||
};
|
||||
|
||||
# test fail (timezone test fail)
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
pytz-deprecation-shim
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_conflicting"
|
||||
"test_noconflict"
|
||||
"test_symlink_localtime"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "tzlocal" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user