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