1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pendulum/default.nix
2018-12-03 16:50:33 +01:00

24 lines
570 B
Nix

{ lib, fetchPypi, buildPythonPackage, pythonOlder
, dateutil, pytzdata, typing }:
buildPythonPackage rec {
pname = "pendulum";
version = "2.0.4";
src = fetchPypi {
inherit pname version;
sha256 = "cf535d36c063575d4752af36df928882b2e0e31541b4482c97d63752785f9fcb";
};
propagatedBuildInputs = [ dateutil pytzdata ] ++ lib.optional (pythonOlder "3.5") typing;
# No tests
doCheck = false;
meta = with lib; {
description = "Python datetimes made easy";
homepage = https://github.com/sdispater/pendulum;
license = licenses.mit;
};
}