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
46
pkgs/development/python-modules/readchar/default.nix
Normal file
46
pkgs/development/python-modules/readchar/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# native
|
||||
, flake8
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, pexpect
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "readchar";
|
||||
version = "3.0.5";
|
||||
format = "setuptools";
|
||||
|
||||
# Don't use wheels on PyPI
|
||||
src = fetchFromGitHub {
|
||||
owner = "magmax";
|
||||
repo = "python-${pname}";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256:01bjw3ipdzxq1ijn9354nlya625i26ri7jac1dnlj1d1gdd8m5lx";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "--cov readchar" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
flake8
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pexpect
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/magmax/python-readchar";
|
||||
description = "Python library to read characters and key strokes";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mmahut ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue