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

25 lines
597 B
Nix
Raw Normal View History

2018-02-03 11:48:47 +00:00
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pytz";
2021-10-08 22:23:14 +00:00
version = "2021.3";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2021-10-08 22:23:14 +00:00
sha256 = "acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326";
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 ];
};
}