2020-10-25 21:17:24 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
, pkg-config
|
|
|
|
, cairo
|
|
|
|
, 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
|
2020-10-25 21:17:24 +00:00
|
|
|
pkg-config
|
2019-01-11 02:43:01 +00:00
|
|
|
];
|
2018-04-07 00:53:34 +01:00
|
|
|
|
2019-01-11 02:43:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
];
|
2016-04-26 22:28:39 +01:00
|
|
|
|
2020-10-25 21:17:24 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2015-11-08 07:21:58 +00:00
|
|
|
|
2020-10-25 21:17:24 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dpython=${if isPy3k then "python3" else "python"}"
|
|
|
|
];
|
2019-01-11 02:43:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 2/3 bindings for cairo";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pycairo.readthedocs.io/";
|
2020-10-25 21:17:24 +00:00
|
|
|
license = with licenses; [ lgpl21Only mpl11 ];
|
2019-01-11 02:43:01 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
|
|
};
|
2007-05-13 21:49:13 +01:00
|
|
|
}
|