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
73
pkgs/development/python-modules/bpython/default.nix
Normal file
73
pkgs/development/python-modules/bpython/default.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, curtsies
|
||||
, cwcwidth
|
||||
, dataclasses
|
||||
, greenlet
|
||||
, jedi
|
||||
, pygments
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyperclip
|
||||
, pyxdg
|
||||
, requests
|
||||
, substituteAll
|
||||
, typing-extensions
|
||||
, urwid
|
||||
, watchdog
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bpython";
|
||||
version = "0.22.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-H7HgpSMyV5/E49z3XiF5avZ6rivkYBeez8zpUwpJogA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
curtsies
|
||||
cwcwidth
|
||||
greenlet
|
||||
jedi
|
||||
pygments
|
||||
pyperclip
|
||||
pyxdg
|
||||
requests
|
||||
typing-extensions
|
||||
urwid
|
||||
watchdog
|
||||
] ++ lib.optionals (pythonOlder "3.7") [
|
||||
dataclasses
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
||||
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bpython"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Check for syntax error ends with an AssertionError
|
||||
"test_syntaxerror"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A fancy curses interface to the Python interactive interpreter";
|
||||
homepage = "https://bpython-interpreter.org/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ flokli dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue