3
0
Fork 0
forked from mirrors/nixpkgs
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";
2020-11-29 14:04:40 +00:00
version = "2020.4";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:40 +00:00
sha256 = "3e6b7dd2d1e0a59084bcee14a17af60c5c562cdc16d828e8eba2e683d3a7e268";
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 ];
};
}