summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/datasette-template-sql/default.nix
blob: 2541440392f65f0e9b437744c3fdb4928c47c7a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  datasette,
  fetchFromGitHub,
}:

buildPythonPackage rec {
  pname = "datasette-template-sql";
  version = "1.0.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "simonw";
    repo = "datasette-template-sql";
    rev = version;
    hash = "sha256-VmdIEDk3iCBFrTPMm6ud00Z5CWqO0Wk707IQ4oVx5ak=";
  };

  propagatedBuildInputs = [ datasette ];

  # Tests require a running datasette instance
  doCheck = false;

  pythonImportsCheck = [ "datasette_template_sql" ];

  meta = {
    description = "Datasette plugin for executing SQL queries from templates";
    homepage = "https://datasette.io/plugins/datasette-template-sql";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ MostAwesomeDude ];
  };
}