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