1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 sqlalchemy, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "sqlalchemy-views"; 12 version = "0.3.2"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 repo = "sqlalchemy-views"; 17 owner = "jklukas"; 18 tag = "v${version}"; 19 hash = "sha256-MJgikWXo3lpMsSYbb5sOSOTbJPOx5gEghW1V9jKvHKU="; 20 }; 21 22 postPatch = '' 23 substituteInPlace tox.ini --replace '--cov=sqlalchemy_views --cov-report=term' "" 24 ''; 25 26 nativeBuildInputs = [ setuptools ]; 27 28 propagatedBuildInputs = [ sqlalchemy ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "sqlalchemy_views" ]; 33 34 meta = with lib; { 35 description = "Adds CreateView and DropView constructs to SQLAlchemy"; 36 homepage = "https://github.com/jklukas/sqlalchemy-views"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ cpcloud ]; 39 }; 40}