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