0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00
nixpkgs/pkgs/development/python-modules/sqlalchemy-views/default.nix

40 lines
906 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
sqlalchemy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sqlalchemy-views";
version = "0.3.2";
format = "setuptools";
src = fetchFromGitHub {
repo = "sqlalchemy-views";
owner = "jklukas";
tag = "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 ];
};
}