mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 09:23:37 +00:00
python310Packages: Fix build, extract optionals
This commit is contained in:
parent
b9302d9c7f
commit
f8701bc950
@ -43,8 +43,8 @@ buildPythonPackage rec {
|
||||
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 }'
|
||||
--replace 'cachetools = { version = "^4.2.1", optional = true }' 'cachetools = { version = "*", optional = true }' \
|
||||
--replace 'aiohttp-socks = "^0.7.0"' 'aiohttp-socks = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -53,23 +53,28 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
logbook
|
||||
aiofiles
|
||||
aiohttp
|
||||
aiohttp-socks
|
||||
atomicwrites
|
||||
attrs
|
||||
cachetools
|
||||
future
|
||||
h11
|
||||
h2
|
||||
jsonschema
|
||||
peewee
|
||||
logbook
|
||||
pycryptodome
|
||||
python-olm
|
||||
unpaddedbase64
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
e2e = [
|
||||
atomicwrites
|
||||
cachetools
|
||||
python-olm
|
||||
peewee
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
faker
|
||||
@ -78,7 +83,7 @@ buildPythonPackage rec {
|
||||
pytest-aiohttp
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ passthru.optional-dependencies.e2e;
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--benchmark-disable"
|
||||
@ -93,6 +98,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/poljar/matrix-nio";
|
||||
changelog = "https://github.com/poljar/matrix-nio/blob/${version}/CHANGELOG.md";
|
||||
description = "A Python Matrix client library, designed according to sans I/O principles";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ tilpner emily symphorien ];
|
||||
|
Loading…
Reference in New Issue
Block a user