depot/third_party/nixpkgs/pkgs/development/python-modules/datasette-template-sql/default.nix
Default email 2ea8997135 Project import generated by Copybara.
GitOrigin-RevId: 5bc8b980b9178ef9a4bb622320cf34e59ea2ea10
2021-08-23 10:02:39 +02:00

33 lines
774 B
Nix

{ 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 ];
};
}