diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-02-23 11:51:52 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-02-23 11:51:52 +0100 |
commit | 8b3d057c78b3c4c0e70604e41133b21dad3f4718 (patch) | |
tree | 70d63b1db0f77fba33615768ed994711b32144ab | |
parent | 2048599cff658e9ee75b4b7733e42e1b0db4e2a3 (diff) | |
parent | 1053cfa4d5e2fff51c399fcbbdca0c19a6727e10 (diff) | |
download | nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar.gz nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar.bz2 nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar.lz nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar.xz nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.tar.zst nixlib-8b3d057c78b3c4c0e70604e41133b21dad3f4718.zip |
Merge pull request #13366 from lancelotsix/add_flakes_migrate
pythonPackages.flask_migrate: init at 1.7.0
-rw-r--r-- | pkgs/top-level/python-packages.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a667a81359d..ac9e98f1f7b5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8781,6 +8781,31 @@ in modules // { }; }; + flask_migrate = buildPythonPackage rec { + name = "Flask-Migrate-${version}"; + version = "1.7.0"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/F/Flask-Migrate/Flask-Migrate-1.7.0.tar.gz"; + sha256 = "16d7vnaj9xmxvb3qbcmhahm3ldfdhzzi6y221h62x4v1v1jayx7v"; + }; + + # When tests run with python3*, tests should run commands as "python3 <args>", + # not "python <args>" + patchPhase = '' + substituteInPlace tests/test_migrate.py --replace "python" "${python.executable}" + substituteInPlace tests/test_multidb_migrate.py --replace "python" "${python.executable}" + ''; + + propagatedBuildInputs = with self ; [ flask flask_sqlalchemy flask_script alembic ]; + + meta = { + description = "SQLAlchemy database migrations for Flask applications using Alembic"; + license = licenses.mit; + homepage = https://github.com/miguelgrinberg/Flask-Migrate; + }; + }; + flask_principal = buildPythonPackage rec { name = "Flask-Principal-${version}"; version = "0.4.0"; @@ -8840,6 +8865,24 @@ in modules // { }; }; + flask_sqlalchemy = buildPythonPackage rec { + name = "Flask-SQLAlchemy-${version}"; + version = "2.1"; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/F/Flask-SQLAlchemy/${name}.tar.gz"; + sha256 = "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"; + }; + + propagatedBuildInputs = with self ; [ flask sqlalchemy_1_0 ]; + + meta = { + description = "SQLAlchemy extension for Flask"; + homepage = http://flask-sqlalchemy.pocoo.org/; + license = licenses.bsd3; + }; + }; + wtforms = buildPythonPackage rec { version = "2.0.2"; name = "wtforms-${version}"; |