mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
mautrix-telegram: 0.8.2 -> 0.9.0
This commit is contained in:
parent
7ba9348a04
commit
cb22277648
|
@ -11,20 +11,24 @@ let
|
|||
|
||||
in buildPythonPackage rec {
|
||||
pname = "mautrix-telegram";
|
||||
version = "0.8.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "0.9.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tulir";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0mhy9b933haz1bldkglvn81warjxdjdzgkviiv5k6fykghq473jf";
|
||||
sha256 = "1543ljjl3jg3ayid7ifi4bamqh4gq85pmlbs3m8i7phjbbm7g9dn";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/alembic>/d' requirements.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pytestrunner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
Mako
|
||||
aiohttp
|
||||
|
@ -32,7 +36,6 @@ in buildPythonPackage rec {
|
|||
sqlalchemy
|
||||
CommonMark
|
||||
ruamel_yaml
|
||||
future-fstrings
|
||||
python_magic
|
||||
telethon
|
||||
telethon-session-sqlalchemy
|
||||
|
@ -53,9 +56,12 @@ in buildPythonPackage rec {
|
|||
];
|
||||
});
|
||||
|
||||
# Tests are broken and throw the following for every test:
|
||||
# TypeError: 'Mock' object is not subscriptable
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestrunner
|
||||
pytest-mock
|
||||
pytest-asyncio
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue