2018-06-29 18:50:14 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
|
|
, dateutil, pytzdata, typing }:
|
2018-01-20 10:50:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pendulum";
|
2020-06-06 07:47:21 +01:00
|
|
|
version = "2.1.0";
|
2018-01-20 10:50:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:21 +01:00
|
|
|
sha256 = "093cab342e10516660e64b935a6da1a043e0286de36cc229fb48471415981ffe";
|
2018-01-20 10:50:45 +00:00
|
|
|
};
|
|
|
|
|
2018-06-29 18:50:14 +01: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 18:50:14 +01:00
|
|
|
meta = with lib; {
|
2018-01-20 10:50:45 +00:00
|
|
|
description = "Python datetimes made easy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/sdispater/pendulum";
|
2018-01-20 10:50:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|