1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/python-modules/sqlalchemy/default.nix

37 lines
724 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, pytest_30
, mock
, pytest_xdist
, isPy3k
, pysqlite
}:
buildPythonPackage rec {
pname = "SQLAlchemy";
name = "${pname}-${version}";
2017-12-30 11:27:30 +00:00
version = "1.2.0";
src = fetchPypi {
inherit pname version;
2017-12-30 11:27:30 +00:00
sha256 = "7dda3e0b1b12215e3bb05368d1abbf7d747112a43738e0a4e6deb466b83fd88e";
};
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;
};
}