mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
31 lines
824 B
Nix
31 lines
824 B
Nix
{ stdenv, python, buildPythonPackage, isPy3k, fetchPypi }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymetar";
|
|
version = "1.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
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.gpl2Plus;
|
|
maintainers = with maintainers; [ erosennin ];
|
|
};
|
|
}
|