nixpkgs-suyu/pkgs/development/python-modules/sqlalchemy/default.nix
2019-10-18 09:54:01 +02:00

34 lines
652 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy3k
, mock
, pysqlite
, pytest
}:
buildPythonPackage rec {
pname = "SQLAlchemy";
version = "1.3.10";
src = fetchPypi {
inherit pname version;
sha256 = "0f0768b5db594517e1f5e1572c73d14cf295140756431270d89496dc13d5e46c";
};
checkInputs = [
pytest
mock
] ++ lib.optional (!isPy3k) pysqlite;
postInstall = ''
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
'';
checkPhase = ''
pytest test
'';
meta = with lib; {
homepage = http://www.sqlalchemy.org/;
description = "A Python SQL toolkit and Object Relational Mapper";
license = licenses.mit;
};
}