mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
37 lines
912 B
Nix
37 lines
912 B
Nix
{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35
|
|
, mock
|
|
, pysqlite
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "SQLAlchemy";
|
|
version = "1.3.13";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "64a7b71846db6423807e96820993fa12a03b89127d278290ca25c0b11ed7b4fb";
|
|
};
|
|
|
|
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 isPy35 [ "exception_persistent_flush_py3k "]
|
|
++ 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;
|
|
};
|
|
}
|