Merge pull request #46124 from erosennin/pymetar-1.0
pythonPackages.pymetar: 0.21 -> 1.0
This commit is contained in:
commit
574f893507
@ -1,20 +1,30 @@
|
||||
{ stdenv, buildPythonPackage, isPy3k, fetchPypi }:
|
||||
{ stdenv, python, buildPythonPackage, isPy3k, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymetar";
|
||||
version = "0.21";
|
||||
version = "1.0";
|
||||
|
||||
disabled = isPy3k;
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1sh3nm5ilnsgpnzbb2wv4xndnizjayw859qp72798jadqpcph69k";
|
||||
sha256 = "1n4k5aic4sgp43ki6j3zdw9b21r3biqqws8ah57b77n44b8wzrap";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
cd testing/smoketest
|
||||
tar xzf reports.tgz
|
||||
mkdir logs
|
||||
patchShebangs runtests.sh
|
||||
substituteInPlace runtests.sh --replace "break" "exit 1" # fail properly
|
||||
export PYTHONPATH="$PYTHONPATH:$out/${python.sitePackages}"
|
||||
./runtests.sh
|
||||
'';
|
||||
|
||||
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;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ erosennin ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user