uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/development/python-modules/pymetar/default.nix
Normal file
30
pkgs/development/python-modules/pymetar/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, python, buildPythonPackage, isPy3k, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymetar";
|
||||
version = "1.4";
|
||||
|
||||
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 = "A command-line tool to show the weather report by a given station ID";
|
||||
homepage = "https://github.com/klausman/pymetar";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ erosennin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue