git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26233 from risicle/flask-migrate-bump

python.pkgs.flask_migrate: 1.7.0 -> 2.0.3

commit30ce98bbc3368027875983f27be72d4a038733aa authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateTue 30 May 2017, 13:40 (9 years ago) parentb73fd0ca1c1598
2 files changed+30−24
pkgs/development/python-modules/flask-migrate/default.nix+29 pkgs/top-level/python-packages.nix+1−24
pkgs/development/python-modules/flask-migrate/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPy3k, python, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic
2+}:
3+
4+with stdenv.lib;
5+
6+buildPythonPackage rec {
7+ pname = "Flask-Migrate";
8+ version = "2.0.3";
9+ name = "${pname}-${version}";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk";
14+ };
15+
16+ checkInputs = optional isPy3k glibcLocales;
17+ propagatedBuildInputs = [ flask flask_sqlalchemy flask_script alembic ];
18+
19+ # tests invoke the flask cli which uses click and therefore has py3k encoding troubles
20+ preCheck = optionalString isPy3k ''
21+ export LANG="en_US.UTF-8"
22+ '';
23+
24+ meta = {
25+ description = "SQLAlchemy database migrations for Flask applications using Alembic";
26+ license = licenses.mit;
27+ homepage = https://github.com/miguelgrinberg/Flask-Migrate;
28+ };
29+}
pkgs/top-level/python-packages.nix+1−24
@@ -11020,30 +11020,7 @@ in {
1102011020
1102111021 flask_ldap_login = callPackage ../development/python-modules/flask-ldap-login.nix { };
1102211022
11023− flask_migrate = buildPythonPackage rec {
11024− name = "Flask-Migrate-${version}";
11025− version = "1.7.0";
11026−
11027− src = pkgs.fetchurl {
11028− url = "mirror://pypi/F/Flask-Migrate/Flask-Migrate-1.7.0.tar.gz";
11029− sha256 = "16d7vnaj9xmxvb3qbcmhahm3ldfdhzzi6y221h62x4v1v1jayx7v";
11030− };
11031−
11032− # When tests run with python3*, tests should run commands as "python3 <args>",
11033− # not "python <args>"
11034− patchPhase = ''
11035− substituteInPlace tests/test_migrate.py --replace "python" "${python.executable}"
11036− substituteInPlace tests/test_multidb_migrate.py --replace "python" "${python.executable}"
11037− '';
11038−
11039− propagatedBuildInputs = with self ; [ flask flask_sqlalchemy flask_script alembic ];
11040−
11041− meta = {
11042− description = "SQLAlchemy database migrations for Flask applications using Alembic";
11043− license = licenses.mit;
11044− homepage = https://github.com/miguelgrinberg/Flask-Migrate;
11045− };
11046− };
11023+ flask_migrate = callPackage ../development/python-modules/flask-migrate { };
1104711024
1104811025 flask_oauthlib = callPackage ../development/python-modules/flask-oauthlib.nix { };
1104911026