nixpkgs/pkgs/development/python-modules/pytz/default.nix

23 lines
560 B
Nix
Raw Normal View History

2018-02-03 11:48:47 +00:00
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pytz";
2018-06-12 17:47:06 +01:00
version = "2018.4";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2018-06-12 17:47:06 +01:00
sha256 = "c06425302f2cf668f1bba7a0a03f3c1d34d4ebeef2c72003da308b3947c7f749";
2018-02-03 11:48:47 +00:00
};
checkPhase = ''
${python.interpreter} -m unittest discover -s pytz/tests
'';
meta = with lib; {
description = "World timezone definitions, modern and historical";
homepage = "http://pythonhosted.org/pytz";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}