sqlite3-to-mysql: 1.4.19 -> 2.0.3
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
afabeca0a9
commit
13920df8bc
1 changed files with 12 additions and 31 deletions
|
@ -1,57 +1,37 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3Packages
|
||||||
, nixosTests
|
, nixosTests
|
||||||
, testers
|
, testers
|
||||||
, sqlite3-to-mysql
|
, sqlite3-to-mysql
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, mysql80
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3Packages.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
# sqlite3-to-mysql is incompatible with versions > 1.4.44 of sqlalchemy
|
|
||||||
sqlalchemy = super.sqlalchemy.overridePythonAttrs rec {
|
|
||||||
version = "1.4.44";
|
|
||||||
format = "setuptools";
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "SQLAlchemy";
|
|
||||||
inherit version;
|
|
||||||
hash = "sha256-LdpflnGa6Js+wPG3lpjYbrmuyx1U6ZCrs/3ZLAS0apA=";
|
|
||||||
};
|
|
||||||
disabledTestPaths = [
|
|
||||||
"test/aaa_profiling"
|
|
||||||
"test/ext/mypy"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
self = py;
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
with py.pkgs; buildPythonApplication rec {
|
|
||||||
pname = "sqlite3-to-mysql";
|
pname = "sqlite3-to-mysql";
|
||||||
version = "1.4.19";
|
version = "2.0.3";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = python3Packages.pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "techouse";
|
owner = "techouse";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-gtXwDLHl5f1sXLm+b8l08bY/XJkN+zVtd7m45K0CAYY=";
|
hash = "sha256-rlKJKthop9BQnqjTUq1hZM/NP69gPdEFTq1rU+CbpWA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = with python3Packages; [
|
||||||
setuptools
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
click
|
click
|
||||||
mysql-connector
|
mysql-connector
|
||||||
pytimeparse
|
pytimeparse2
|
||||||
pymysql
|
pymysql
|
||||||
pymysqlsa
|
pymysqlsa
|
||||||
six
|
|
||||||
simplejson
|
simplejson
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
sqlalchemy-utils
|
sqlalchemy-utils
|
||||||
|
@ -59,6 +39,7 @@ with py.pkgs; buildPythonApplication rec {
|
||||||
tabulate
|
tabulate
|
||||||
unidecode
|
unidecode
|
||||||
packaging
|
packaging
|
||||||
|
mysql80
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests require a mysql server instance
|
# tests require a mysql server instance
|
||||||
|
|
Loading…
Reference in a new issue