mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
python3Packages.pytz-deprecation-shim: init at 0.1.0.post0
This commit is contained in:
parent
516715e915
commit
9cb84a8ce3
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, backports-zoneinfo
|
||||
, python-dateutil
|
||||
, tzdata
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytz-deprecation-shim";
|
||||
version = "0.1.0.post0";
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "pytz_deprecation_shim";
|
||||
inherit version;
|
||||
sha256 = "af097bae1b616dde5c5744441e2ddc69e74dfdcb0c263129610d85b87445a59d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = (lib.optionals (pythonAtLeast "3.6" && pythonOlder "3.9") [
|
||||
backports-zoneinfo
|
||||
]) ++ (lib.optionals (pythonOlder "3.6") [
|
||||
python-dateutil
|
||||
]) ++ (lib.optionals (pythonAtLeast "3.6") [
|
||||
tzdata
|
||||
]);
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
pytz
|
||||
];
|
||||
|
||||
# https://github.com/pganssle/pytz-deprecation-shim/issues/27
|
||||
doCheck = pythonAtLeast "3.9";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Shims to make deprecation of pytz easier";
|
||||
homepage = "https://github.com/pganssle/pytz-deprecation-shim";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -7754,6 +7754,8 @@ in {
|
||||
|
||||
pytz = callPackage ../development/python-modules/pytz { };
|
||||
|
||||
pytz-deprecation-shim = callPackage ../development/python-modules/pytz-deprecation-shim { };
|
||||
|
||||
pytzdata = callPackage ../development/python-modules/pytzdata { };
|
||||
|
||||
pyu2f = callPackage ../development/python-modules/pyu2f { };
|
||||
|
Loading…
Reference in New Issue
Block a user