Merge pull request #46124 from erosennin/pymetar-1.0

pythonPackages.pymetar: 0.21 -> 1.0
This commit is contained in:
Sarah Brofeldt 2018-09-06 10:26:32 +02:00 committed by GitHub
commit 574f893507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];
};
}