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

23 lines
560 B
Nix
Raw Normal View History

2018-02-03 12:48:47 +01:00
{ lib, buildPythonPackage, fetchPypi, python }:
buildPythonPackage rec {
pname = "pytz";
2018-11-04 11:35:14 +01:00
version = "2018.7";
2018-02-03 12:48:47 +01:00
src = fetchPypi {
inherit pname version;
2018-11-04 11:35:14 +01:00
sha256 = "31cb35c89bd7d333cd32c5f278fca91b523b0834369e757f4c5641ea252236ca";
2018-02-03 12:48:47 +01: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 ];
};
}