nixpkgs-suyu/pkgs/development/python-modules/pendulum/default.nix

24 lines
570 B
Nix
Raw Normal View History

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