2019-01-10 18:43:01 -08:00
|
|
|
{ lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy33, isPy3k }:
|
2007-05-13 13:49:13 -07:00
|
|
|
|
2017-11-25 07:41:57 -08:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 02:25:35 -07:00
|
|
|
pname = "pycairo";
|
2019-11-05 09:40:25 -08:00
|
|
|
version = "1.18.2";
|
2017-03-31 19:50:06 -07:00
|
|
|
|
2019-01-10 18:43:01 -08:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
disabled = isPy33;
|
2007-05-13 13:49:13 -07:00
|
|
|
|
2017-11-25 07:41:57 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pygobject";
|
|
|
|
repo = "pycairo";
|
|
|
|
rev = "v${version}";
|
2019-11-05 09:40:25 -08:00
|
|
|
sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
|
2017-11-25 07:41:57 -08:00
|
|
|
};
|
|
|
|
|
2019-01-10 18:43:01 -08:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
];
|
2018-04-06 16:53:34 -07:00
|
|
|
|
2019-01-10 18:43:01 -08:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
xlibsWrapper
|
|
|
|
];
|
2016-04-26 14:28:39 -07:00
|
|
|
|
2017-11-25 07:41:57 -08:00
|
|
|
checkInputs = [ pytest ];
|
2015-11-07 23:21:58 -08:00
|
|
|
|
2019-01-10 18:43:01 -08: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 13:49:13 -07:00
|
|
|
}
|