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
37
pkgs/development/python-modules/pyscreeze/default.nix
Normal file
37
pkgs/development/python-modules/pyscreeze/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pillow
|
||||
, xlib
|
||||
, xvfb-run
|
||||
, scrot
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "PyScreeze";
|
||||
version = "0.1.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "asweigart";
|
||||
repo = "pyscreeze";
|
||||
rev = "28ab707dceecbdd135a9491c3f8effd3a69680af";
|
||||
sha256 = "sha256-gn3ydjf/msdhIhngGlhK+jhEyFy0qGeDr58E7kM2YZs=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "pyscreeze" ];
|
||||
checkInputs = [ scrot xlib xvfb-run ];
|
||||
checkPhase = ''
|
||||
python -m unittest tests.test_pillow_unavailable
|
||||
xvfb-run python -m unittest tests.test_pyscreeze
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pillow
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3.";
|
||||
homepage = "https://github.com/asweigart/pyscreeze";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ lucasew ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue