Merge pull request #226257 from cpcloud/nixpkgs-sqlalchemy-views

python3Packages.sqlalchemy-views: init at 0.3.2
This commit is contained in:
Martin Weinelt 2023-04-17 00:40:24 +02:00 committed by GitHub
commit c8fea324cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, sqlalchemy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sqlalchemy-views";
version = "0.3.2";
format = "setuptools";
src = fetchFromGitHub {
repo = pname;
owner = "jklukas";
rev = "refs/tags/v${version}";
hash = "sha256-MJgikWXo3lpMsSYbb5sOSOTbJPOx5gEghW1V9jKvHKU=";
};
postPatch = ''
substituteInPlace tox.ini --replace '--cov=sqlalchemy_views --cov-report=term' ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
sqlalchemy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sqlalchemy_views"
];
meta = with lib; {
description = "Adds CreateView and DropView constructs to SQLAlchemy";
homepage = "https://github.com/jklukas/sqlalchemy-views";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}

View File

@ -11278,6 +11278,8 @@ self: super: with self; {
sqlalchemy-utils = callPackage ../development/python-modules/sqlalchemy-utils { };
sqlalchemy-views = callPackage ../development/python-modules/sqlalchemy-views { };
sqlglot = callPackage ../development/python-modules/sqlglot { };
sqlitedict = callPackage ../development/python-modules/sqlitedict { };