diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-27 17:44:08 -0400 |
---|---|---|
committer | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-30 00:50:50 -0400 |
commit | 0f2194508c909d740af4ff61f7dbed572f4720ca (patch) | |
tree | fd10b32e5a7c4ee33cc6c9c99f36303937ec4cc8 /pkgs/development/python-modules/sqlalchemy-imageattach | |
parent | e186e5a5edd5d3d6ae1249e1e4ac5332e229a0ae (diff) | |
download | nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar.gz nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar.bz2 nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar.lz nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar.xz nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.tar.zst nixpkgs-0f2194508c909d740af4ff61f7dbed572f4720ca.zip |
pythonPackages.sqlalchemy-imageattach: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/sqlalchemy-imageattach')
-rw-r--r-- | pkgs/development/python-modules/sqlalchemy-imageattach/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sqlalchemy-imageattach/default.nix b/pkgs/development/python-modules/sqlalchemy-imageattach/default.nix new file mode 100644 index 00000000000..53eb223b25a --- /dev/null +++ b/pkgs/development/python-modules/sqlalchemy-imageattach/default.nix @@ -0,0 +1,42 @@ +{ stdenv +, buildPythonPackage +, fetchFromGitHub +, pytest +, Wand +, webob +, sqlalchemy +, isPyPy +, pkgs +}: + +buildPythonPackage rec { + pname = "SQLAlchemy-ImageAttach"; + version = "1.0.0"; + + src = pkgs.fetchFromGitHub { + repo = "sqlalchemy-imageattach"; + owner = "dahlia"; + rev = "${version}"; + sha256 = "0ba97pn5dh00qvxyjbr0mr3pilxqw5kb3a6jd4wwbsfcv6nngqig"; + }; + + checkInputs = [ pytest Wand.imagemagick webob ]; + propagatedBuildInputs = [ sqlalchemy Wand ]; + + checkPhase = '' + cd tests + export MAGICK_HOME="${pkgs.imagemagick.dev}" + export PYTHONPATH=$PYTHONPATH:../ + py.test + cd .. + ''; + + doCheck = !isPyPy; # failures due to sqla version mismatch + + meta = with stdenv.lib; { + homepage = https://github.com/dahlia/sqlalchemy-imageattach; + description = "SQLAlchemy extension for attaching images to entity objects"; + license = licenses.mit; + }; + +} |