Files
nixpkgs/pkgs/development/python-modules/pymetar/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

39 lines
878 B
Nix

{
lib,
python,
buildPythonPackage,
isPy3k,
fetchPypi,
}:
buildPythonPackage rec {
pname = "pymetar";
version = "1.4";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "48dbe6c4929961021cb61e49bb9e0605b54c4b61b9fb9ade51076705a08ecd54";
};
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 lib; {
description = "Command-line tool to show the weather report by a given station ID";
mainProgram = "pymetar";
homepage = "https://github.com/klausman/pymetar";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ erosennin ];
};
}