nixpkgs-suyu/pkgs/applications/misc/tzupdate/default.nix

24 lines
563 B
Nix
Raw Normal View History

2020-01-31 07:16:55 +01:00
{ stdenv, python3 }:
2017-10-17 00:46:10 +02:00
let
2020-01-31 07:16:55 +01:00
inherit (python3.pkgs) buildPythonApplication fetchPypi requests;
2017-10-17 00:46:10 +02:00
in
buildPythonApplication rec {
pname = "tzupdate";
2020-01-31 07:16:55 +01:00
version = "2.0.0";
2017-10-17 00:46:10 +02:00
src = fetchPypi {
inherit pname version;
2020-01-31 07:16:55 +01:00
sha256 = "12jvyza9pfhazkzq94nizacknnp32lf7kalrjmpz1z2bqqxhx0fm";
2017-10-17 00:46:10 +02:00
};
propagatedBuildInputs = [ requests ];
meta = with stdenv.lib; {
2020-01-31 07:16:55 +01:00
description = "Update timezone information based on geoip";
homepage = "https://github.com/cdown/tzupdate";
2017-10-17 00:46:10 +02:00
maintainers = [ maintainers.michaelpj ];
license = licenses.unlicense;
};
}