2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
, importlib-metadata
|
2022-04-27 09:35:20 +00:00
|
|
|
, setuptools
|
|
|
|
, sqlparse
|
|
|
|
, tabulate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yoyo-migrations";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "8.2.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-ggYGoD4mLPHNT1niVsKPpEZCUiTVuCo9EnX9eBeFI+Q=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
importlib-metadata
|
|
|
|
setuptools
|
|
|
|
sqlparse
|
|
|
|
tabulate
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
doCheck = false; # pypi tarball does not contain tests
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yoyo" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Database schema migration tool";
|
|
|
|
homepage = "https://ollycope.com/software/yoyo";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|