2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
importlib-metadata,
|
|
|
|
setuptools,
|
|
|
|
sqlparse,
|
|
|
|
tabulate,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yoyo-migrations";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "8.2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "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 ];
|
|
|
|
};
|
|
|
|
}
|