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
96
pkgs/development/python-modules/matrix-nio/default.nix
Normal file
96
pkgs/development/python-modules/matrix-nio/default.nix
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, Logbook
|
||||
, aiofiles
|
||||
, aiohttp
|
||||
, aiohttp-socks
|
||||
, aioresponses
|
||||
, atomicwrites
|
||||
, attrs
|
||||
, cachetools
|
||||
, faker
|
||||
, future
|
||||
, git
|
||||
, h11
|
||||
, h2
|
||||
, hypothesis
|
||||
, jsonschema
|
||||
, peewee
|
||||
, poetry-core
|
||||
, pycryptodome
|
||||
, pytest-aiohttp
|
||||
, pytest-benchmark
|
||||
, pytestCheckHook
|
||||
, python-olm
|
||||
, unpaddedbase64
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "matrix-nio";
|
||||
version = "0.19.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "poljar";
|
||||
repo = "matrix-nio";
|
||||
rev = version;
|
||||
hash = "sha256-+WZk2m05y/bYj8zSuWTzm+rnCC0L9H9WNQ2RLXv7hDk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'aiofiles = "^0.6.0"' 'aiofiles = "*"' \
|
||||
--replace 'h11 = "^0.12.0"' 'h11 = "*"' \
|
||||
--replace 'jsonschema = "^3.2.0"' 'jsonschema = "*"' \
|
||||
--replace 'cachetools = { version = "^4.2.1", optional = true }' 'cachetools = { version = "*", optional = true }'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
Logbook
|
||||
aiofiles
|
||||
aiohttp
|
||||
aiohttp-socks
|
||||
atomicwrites
|
||||
attrs
|
||||
cachetools
|
||||
future
|
||||
h11
|
||||
h2
|
||||
jsonschema
|
||||
peewee
|
||||
pycryptodome
|
||||
python-olm
|
||||
unpaddedbase64
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aioresponses
|
||||
faker
|
||||
hypothesis
|
||||
pytest-aiohttp
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--benchmark-disable" ];
|
||||
|
||||
disabledTests = [
|
||||
# touches network
|
||||
"test_connect_wrapper"
|
||||
# time dependent and flaky
|
||||
"test_transfer_monitor_callbacks"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/poljar/matrix-nio";
|
||||
description = "A Python Matrix client library, designed according to sans I/O principles";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ tilpner emily symphorien ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue