2020-05-04 19:32:01 +01:00
|
|
|
{ lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy3k }:
|
2007-05-13 21:49:13 +01:00
|
|
|
|
2017-11-25 15:41:57 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "pycairo";
|
2019-11-05 17:40:25 +00:00
|
|
|
version = "1.18.2";
|
2017-04-01 03:50:06 +01: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-07 00:53:34 +01:00
|
|
|
|
2019-01-11 02:43:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
xlibsWrapper
|
|
|
|
];
|
2016-04-26 22:28:39 +01: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 02:11:51 +01: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 21:49:13 +01:00
|
|
|
}
|