2018-06-29 17:50:14 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
|
|
, dateutil, pytzdata, typing }:
|
2018-01-20 10:50:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pendulum";
|
2018-08-13 07:28:41 +00:00
|
|
|
version = "2.0.3";
|
2018-01-20 10:50:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 07:28:41 +00:00
|
|
|
sha256 = "d07962450e808556b3e6209a5830e2bbf8c7747129580c3b5b09e641f72617ab";
|
2018-01-20 10:50:45 +00:00
|
|
|
};
|
|
|
|
|
2018-06-29 17:50:14 +00:00
|
|
|
propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing;
|
2018-01-20 10:50:45 +00:00
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-06-29 17:50:14 +00:00
|
|
|
meta = with lib; {
|
2018-01-20 10:50:45 +00:00
|
|
|
description = "Python datetimes made easy";
|
|
|
|
homepage = https://github.com/sdispater/pendulum;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|