mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.databases: init at 0.2.6
This commit is contained in:
parent
982d242ba5
commit
f45eef8ff7
2 changed files with 51 additions and 0 deletions
49
pkgs/development/python-modules/databases/default.nix
Normal file
49
pkgs/development/python-modules/databases/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, sqlalchemy
|
||||||
|
, aiocontextvars
|
||||||
|
, isPy27
|
||||||
|
, pytest
|
||||||
|
, asyncpg
|
||||||
|
, aiomysql
|
||||||
|
, aiosqlite
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "databases";
|
||||||
|
version = "0.2.6";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "encode";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0cdb4vln4zdmqbbcj7711b81b2l64jg1miihqcg8gpi35v404h2q";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
sqlalchemy
|
||||||
|
aiocontextvars
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
asyncpg
|
||||||
|
aiomysql
|
||||||
|
aiosqlite
|
||||||
|
];
|
||||||
|
|
||||||
|
# big chunk to tests depend on existing posgresql and mysql databases
|
||||||
|
# some tests are better than no tests
|
||||||
|
checkPhase = ''
|
||||||
|
pytest --ignore=tests/test_integration.py --ignore=tests/test_databases.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Async database support for Python";
|
||||||
|
homepage = https://github.com/encode/databases;
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -550,6 +550,8 @@ in {
|
||||||
inherit (pkgs.llvmPackages) openmp libcxx libcxxabi;
|
inherit (pkgs.llvmPackages) openmp libcxx libcxxabi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
databases = callPackage ../development/python-modules/databases { };
|
||||||
|
|
||||||
datamodeldict = callPackage ../development/python-modules/datamodeldict { };
|
datamodeldict = callPackage ../development/python-modules/datamodeldict { };
|
||||||
|
|
||||||
datasette = callPackage ../development/python-modules/datasette { };
|
datasette = callPackage ../development/python-modules/datasette { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue