summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2017-05-30 12:39:20 +0100
committerRobert Scott <code@humanleg.org.uk>2017-05-30 12:39:20 +0100
commita1c15989aa8363a80f32123ea0030ecef68576a9 (patch)
treee3923856412a6e51644fed76f7e126461a7706c4 /pkgs/development/python-modules
parent84a13a8bddf0a25940ab725af1dc1fd8cdbc904a (diff)
downloadnixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar.gz
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar.bz2
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar.lz
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar.xz
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.tar.zst
nixpkgs-a1c15989aa8363a80f32123ea0030ecef68576a9.zip
python.pkgs.flask_migrate: 1.7.0 -> 2.0.3
fixes build against new dependencies after some test tinkering, seems
we can remove the python3-patching as there exists a "python" symlink now
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/flask-migrate/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flask-migrate/default.nix b/pkgs/development/python-modules/flask-migrate/default.nix
new file mode 100644
index 00000000000..26fbed4ca5e
--- /dev/null
+++ b/pkgs/development/python-modules/flask-migrate/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k, python, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic
+}:
+
+with stdenv.lib;
+
+buildPythonPackage rec {
+  pname = "Flask-Migrate";
+  version = "2.0.3";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk";
+  };
+
+  checkInputs = optional isPy3k glibcLocales;
+  propagatedBuildInputs = [ flask flask_sqlalchemy flask_script alembic ];
+
+  # tests invoke the flask cli which uses click and therefore has py3k encoding troubles
+  preCheck = optionalString isPy3k ''
+    export LANG="en_US.UTF-8"
+  '';
+
+  meta = {
+    description = "SQLAlchemy database migrations for Flask applications using Alembic";
+    license = licenses.mit;
+    homepage = https://github.com/miguelgrinberg/Flask-Migrate;
+  };
+}