python3Packages.backports-zoneinfo: init at 0.2.1
This commit is contained in:
parent
ace0555d72
commit
ae33267bab
|
@ -0,0 +1,39 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, importlib-resources
|
||||
, hypothesis
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "backports-zoneinfo";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pganssle";
|
||||
repo = "zoneinfo";
|
||||
rev = version;
|
||||
sha256 = "sha256-00xdDOVdDanfsjQTd3yjMN2RFGel4cWRrAA3CvSnl24=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "backports.zoneinfo" ];
|
||||
|
||||
checkInputs = [
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# unfortunately /etc/zoneinfo doesn't exist in sandbox, and many tests fail
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Backport of the standard library module zoneinfo";
|
||||
homepage = "https://github.com/pganssle/zoneinfo";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
};
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
lxml, tzlocal, python-dateutil, pygments, requests-kerberos,
|
||||
defusedxml, cached-property, isodate, requests_ntlm, dnspython,
|
||||
psutil, requests-mock, pyyaml,
|
||||
oauthlib, requests_oauthlib,
|
||||
oauthlib, requests_oauthlib, tzdata,
|
||||
flake8,
|
||||
}:
|
||||
|
||||
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
|||
flake8
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
lxml tzlocal python-dateutil pygments requests-kerberos
|
||||
lxml tzlocal tzdata python-dateutil pygments requests-kerberos
|
||||
defusedxml cached-property isodate requests_ntlm dnspython
|
||||
oauthlib requests_oauthlib
|
||||
];
|
||||
|
|
|
@ -935,6 +935,8 @@ in {
|
|||
|
||||
backports_weakref = callPackage ../development/python-modules/backports_weakref { };
|
||||
|
||||
backports-zoneinfo = callPackage ../development/python-modules/backports-zoneinfo { };
|
||||
|
||||
bacpypes = callPackage ../development/python-modules/bacpypes { };
|
||||
|
||||
banal = callPackage ../development/python-modules/banal { };
|
||||
|
|
Loading…
Reference in New Issue