2018-06-29 19:50:14 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
|
|
, dateutil, pytzdata, typing }:
|
2018-01-20 11:50:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pendulum";
|
2019-10-16 11:43:11 +02:00
|
|
|
version = "2.0.5";
|
2018-01-20 11:50:45 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 11:43:11 +02:00
|
|
|
sha256 = "d3078e007315a959989c41cee5cfd63cfeeca21dd3d8295f4bc24199489e9b6c";
|
2018-01-20 11:50:45 +01:00
|
|
|
};
|
|
|
|
|
2018-06-29 19:50:14 +02:00
|
|
|
propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing;
|
2018-01-20 11:50:45 +01:00
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-29 19:50:14 +02:00
|
|
|
meta = with lib; {
|
2018-01-20 11:50:45 +01:00
|
|
|
description = "Python datetimes made easy";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/sdispater/pendulum";
|
2018-01-20 11:50:45 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|