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