pythonmagick -> python2.pkgs.pythonmagick

Python bindings should be in python-packages.nix.
This commit is contained in:
Frederik Rietdijk 2020-06-05 12:00:31 +02:00
parent c055fc0319
commit a4ed97daf0
3 changed files with 25 additions and 10 deletions

View file

@ -1,10 +1,19 @@
# This expression provides Python bindings to ImageMagick. Python libraries are supposed to be called via `python-packages.nix`.
{ lib
, buildPythonPackage
, fetchurl
, python
, pkg-config
, imagemagick
, autoreconfHook
, boost
, isPy3k
, pythonImportsCheckHook
}:
{ stdenv, fetchurl, python, pkgconfig, imagemagick, autoreconfHook }:
stdenv.mkDerivation rec {
buildPythonPackage rec {
pname = "pythonmagick";
version = "0.9.16";
format = "other";
src = fetchurl {
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
@ -15,12 +24,18 @@ stdenv.mkDerivation rec {
rm configure
'';
configureFlags = [ "--with-boost=${python.pkgs.boost}" ];
configureFlags = [ "--with-boost=${boost}" ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ python python.pkgs.boost imagemagick ];
nativeBuildInputs = [ pkg-config autoreconfHook pythonImportsCheckHook ];
buildInputs = [ python boost imagemagick ];
meta = with stdenv.lib; {
pythonImportsCheck = [
"PythonMagick"
];
disabled = isPy3k;
meta = with lib; {
homepage = "http://www.imagemagick.org/script/api.php";
license = licenses.imagemagick;
description = "PythonMagick provides object oriented bindings for the ImageMagick Library.";

View file

@ -21614,8 +21614,6 @@ in
pybitmessage = callPackage ../applications/networking/instant-messengers/pybitmessage { };
pythonmagick = callPackage ../applications/graphics/PythonMagick { };
qbittorrent = libsForQt5.callPackage ../applications/networking/p2p/qbittorrent { };
qbittorrent-nox = qbittorrent.override {
guiSupport = false;

View file

@ -1367,6 +1367,8 @@ in {
pytmx = callPackage ../development/python-modules/pytmx { };
pythonmagick = callPackage ../development/python-modules/pythonmagick { };
python-binance = callPackage ../development/python-modules/python-binance { };
python-dbusmock = callPackage ../development/python-modules/python-dbusmock { };