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

23 lines
561 B
Nix
Raw Normal View History

2018-02-03 11:48:47 +00:00
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pytz";
2019-04-25 12:16:59 +01:00
version = "2019.1";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2019-04-25 12:16:59 +01:00
sha256 = "d747dd3d23d77ef44c6a3526e274af6efeb0a6f1afd5a69ba4d5be4098c8e141";
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 = "https://pythonhosted.org/pytz";
2018-02-03 11:48:47 +00:00
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}