3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pytz/default.nix

25 lines
584 B
Nix
Raw Normal View History

2018-02-03 11:48:47 +00:00
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pytz";
2021-02-04 11:14:52 +00:00
version = "2021.1";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2021-02-04 11:14:52 +00:00
sha256 = "sha256-g6SpCJS/OOJDzwUsi1jzgb/pp6SD9qnKsUC8f3AqxNo=";
2018-02-03 11:48:47 +00:00
};
checkPhase = ''
${python.interpreter} -m unittest discover -s pytz/tests
'';
2021-02-04 11:14:52 +00:00
pythonImportsCheck = [ "pytz" ];
2018-02-03 11:48:47 +00:00
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 ];
};
}