2019-01-11 03:43:01 +01:00
|
|
|
{ lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy33, isPy3k }:
|
2007-05-13 22:49:13 +02:00
|
|
|
|
2017-11-25 16:41:57 +01:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "pycairo";
|
2019-04-24 16:51:39 +02:00
|
|
|
version = "1.18.1";
|
2017-04-01 04:50:06 +02:00
|
|
|
|
2019-01-11 03:43:01 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
disabled = isPy33;
|
2007-05-13 22:49:13 +02:00
|
|
|
|
2017-11-25 16:41:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pygobject";
|
|
|
|
repo = "pycairo";
|
|
|
|
rev = "v${version}";
|
2019-04-24 16:51:39 +02:00
|
|
|
sha256 = "0f4l7d1ibkk8xdspyv5zx8fah9z3x775bd91zirnp37vlgqds7xj";
|
2017-11-25 16:41:57 +01:00
|
|
|
};
|
|
|
|
|
2019-01-11 03:43:01 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
];
|
2018-04-07 01:53:34 +02:00
|
|
|
|
2019-01-11 03:43:01 +01:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
xlibsWrapper
|
|
|
|
];
|
2016-04-26 23:28:39 +02:00
|
|
|
|
2017-11-25 16:41:57 +01:00
|
|
|
checkInputs = [ pytest ];
|
2015-11-08 08:21:58 +01:00
|
|
|
|
2019-01-11 03:43:01 +01:00
|
|
|
mesonFlags = [ "-Dpython=${if isPy3k then "python3" else "python"}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 2/3 bindings for cairo";
|
|
|
|
homepage = https://pycairo.readthedocs.io/;
|
|
|
|
license = with licenses; [ lgpl2 mpl11 ];
|
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
|
|
};
|
2007-05-13 22:49:13 +02:00
|
|
|
}
|