mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Revert "use sqlalchemy 1.3.x for mautrix-telegram"
This commit is contained in:
52
pkgs/development/python-modules/sqlalchemy/default.nix
Normal file
52
pkgs/development/python-modules/sqlalchemy/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, greenlet
|
||||
, importlib-metadata
|
||||
, mock
|
||||
, pysqlite ? null
|
||||
, pytestCheckHook
|
||||
, pytest_xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SQLAlchemy";
|
||||
version = "1.4.16";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "15yl9frbxsq90hq5b8znqy34fg5kqdw1jjw933kz709rbpxw4lzd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
greenlet
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
mock
|
||||
] ++ lib.optional (!isPy3k) pysqlite;
|
||||
|
||||
postInstall = ''
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
# disable mem-usage tests on mac, has trouble serializing pickle files
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
"MemUsageWBackendTest"
|
||||
"MemUsageTest"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.sqlalchemy.org/";
|
||||
description = "A Python SQL toolkit and Object Relational Mapper";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user