nixpkgs/pkgs/development/python-modules/sqlalchemy/default.nix

35 lines
652 B
Nix
Raw Normal View History

{ lib, fetchPypi, buildPythonPackage, isPy3k
, mock
, pysqlite
, pytest
}:
buildPythonPackage rec {
pname = "SQLAlchemy";
2019-10-16 10:43:15 +01:00
version = "1.3.10";
src = fetchPypi {
inherit pname version;
2019-10-16 10:43:15 +01:00
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;
};
}