1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pythonOlder
6, setuptools
7, sqlite-utils
8}:
9
10buildPythonPackage rec {
11 pname = "sqlite-migrate";
12 version = "0.1a2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-wztAqe3TW0SQ4JX1XPWeA4KNJci5c3fNih97cmlPwRE=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 ];
25
26 propagatedBuildInputs = [
27 sqlite-utils
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "sqlite_migrate"
36 ];
37
38 meta = with lib; {
39 description = "A simple database migration system for SQLite, based on sqlite-utils";
40 homepage = "https://github.com/simonw/sqlite-migrate";
41 changelog = "https://github.com/simonw/sqlite-migrate/releases/tag/${version}";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ aldoborrero ];
44 };
45}