1{ lib
2, buildPythonPackage
3, cogapp
4, datasette
5, fetchFromGitHub
6, pytest-mock
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "datasette-publish-fly";
13 version = "1.3.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "simonw";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-diaxr+fNNgkJvLGkLo+lK0ThTsXYDePFsvTetMbDRMk=";
23 };
24
25 propagatedBuildInputs = [
26 datasette
27 ];
28
29 nativeCheckInputs = [
30 cogapp
31 pytest-mock
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "datasette_publish_fly"
37 ];
38
39 meta = with lib; {
40 description = "Datasette plugin for publishing data using Fly";
41 homepage = "https://datasette.io/plugins/datasette-publish-fly";
42 changelog = "https://github.com/simonw/datasette-publish-fly/releases/tag/${version}";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ fab ];
45 };
46}