3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sqlalchemy/default.nix

37 lines
725 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, pytest_30
, mock
, pytest_xdist
, isPy3k
, pysqlite
}:
buildPythonPackage rec {
pname = "SQLAlchemy";
name = "${pname}-${version}";
2017-10-25 19:04:35 +01:00
version = "1.1.14";
src = fetchPypi {
inherit pname version;
2017-10-25 19:04:35 +01:00
sha256 = "f1191e29e35b6fe1aef7175a09b1707ebb7bd08d0b17cb0feada76c49e5a2d1e";
};
checkInputs = [
pytest_30
mock
# Disable pytest_xdist tests for now, because our version seems to be too new.
# pytest_xdist
] ++ lib.optional (!isPy3k) pysqlite;
checkPhase = ''
py.test
'';
meta = with lib; {
homepage = http://www.sqlalchemy.org/;
description = "A Python SQL toolkit and Object Relational Mapper";
license = licenses.mit;
};
}