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-10-16 10:20:18 +01:00
version = "2019.3";
2018-02-03 11:48:47 +00:00
src = fetchPypi {
inherit pname version;
2019-10-16 10:20:18 +01:00
sha256 = "b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be";
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 ];
};
}