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
63
pkgs/development/python-modules/sopel/default.nix
Normal file
63
pkgs/development/python-modules/sopel/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, isPyPy
|
||||
, dnspython
|
||||
, geoip2
|
||||
, ipython
|
||||
, praw
|
||||
, pyenchant
|
||||
, pygeoip
|
||||
, pytestCheckHook
|
||||
, pytz
|
||||
, sqlalchemy
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sopel";
|
||||
version = "7.1.8";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-zxb95GVcDrd3FG/k+0PLg+dVlMgQpf1ntG8jF/zpHH4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dnspython
|
||||
geoip2
|
||||
ipython
|
||||
praw
|
||||
pyenchant
|
||||
pygeoip
|
||||
pytz
|
||||
sqlalchemy
|
||||
xmltodict
|
||||
];
|
||||
|
||||
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "praw>=4.0.0,<6.0.0" "praw" \
|
||||
--replace "sqlalchemy<1.4" "sqlalchemy"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
export TESTDIR=$(mktemp -d)
|
||||
cp -R ./test $TESTDIR
|
||||
pushd $TESTDIR
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
popd
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "sopel" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple and extensible IRC bot";
|
||||
homepage = "https://sopel.chat";
|
||||
license = licenses.efl20;
|
||||
maintainers = with maintainers; [ mog ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue