pythonPackages.datasette-template-sql: init at 1.0.2 (#129072)

* pythonPackages.datasette-template-sql: init at 1.0.2

* Address review feedback.

* Apply suggestions from code review

And fix the build.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Corbin Simpson 2021-08-22 10:43:47 -07:00 committed by GitHub
parent 002cf7d42d
commit 73ff5250ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, datasette
, pytestCheckHook
, pytest-asyncio
, sqlite-utils
}:
buildPythonPackage rec {
pname = "datasette-template-sql";
version = "1.0.2";
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = version;
sha256 = "1ag5f62y445jscxnklcfd84pjinkknmrpk1kmm2j121p7484hrsn";
};
propagatedBuildInputs = [ datasette ];
checkInputs = [ pytestCheckHook pytest-asyncio sqlite-utils ];
pythonImportsCheck = [ "datasette_template_sql" ];
meta = with lib; {
description = "Datasette plugin for executing SQL queries from templates";
homepage = "https://datasette.io/plugins/datasette-template-sql";
license = licenses.asl20;
maintainers = [ maintainers.MostAwesomeDude ];
};
}

View File

@ -1842,6 +1842,8 @@ in {
datasette = callPackage ../development/python-modules/datasette { };
datasette-template-sql = callPackage ../development/python-modules/datasette-template-sql { };
datashader = callPackage ../development/python-modules/datashader {
dask = self.dask.override { withExtraComplete = true; };
};