python.pkgs.pymetar: modernize

This commit is contained in:
Jörg Thalheim 2018-03-02 16:12:08 +00:00
parent a862a0e559
commit e2f7ef7bf5
2 changed files with 21 additions and 19 deletions

View File

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, isPy3k, fetchPypi }:
buildPythonPackage rec {
pname = "pymetar";
version = "0.21";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1sh3nm5ilnsgpnzbb2wv4xndnizjayw859qp72798jadqpcph69k";
};
meta = with stdenv.lib; {
description = "A command-line tool to show the weather report by a given station ID";
homepage = http://www.schwarzvogel.de/software/pymetar.html;
license = licenses.gpl2;
maintainers = with maintainers; [ erosennin ];
};
}

View File

@ -12417,25 +12417,7 @@ in {
pylibmc = callPackage ../development/python-modules/pylibmc {};
pymetar = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pymetar";
version = "0.21";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/p/${pname}/${name}.tar.gz";
sha256 = "1sh3nm5ilnsgpnzbb2wv4xndnizjayw859qp72798jadqpcph69k";
};
meta = {
description = "A command-line tool to show the weather report by a given station ID";
homepage = http://www.schwarzvogel.de/software/pymetar.html;
license = licenses.gpl2;
maintainers = with maintainers; [ erosennin ];
};
};
pymetar = callPackage ../development/python-modules/pymetar { };
pysftp = buildPythonPackage rec {
name = "pysftp-${version}";