2020-10-25 21:17:24 +00:00
|
|
|
{ lib
|
2021-04-11 19:23:42 +00:00
|
|
|
, pythonOlder
|
2020-10-25 21:17:24 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, buildPythonPackage
|
|
|
|
, pytestCheckHook
|
|
|
|
, pkg-config
|
|
|
|
, cairo
|
2021-04-11 19:23:42 +00:00
|
|
|
, python
|
2020-10-25 21:17:24 +00:00
|
|
|
}:
|
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";
|
2021-03-24 17:41:52 +00:00
|
|
|
version = "1.20.0";
|
2017-04-01 02:50:06 +00:00
|
|
|
|
2021-04-11 19:23:42 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
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}";
|
2021-03-24 17:41:52 +00:00
|
|
|
sha256 = "0ifw4wjbml512w9kqj80y9gfqa7fkgfa1zkvi478k5krghjgk3lr";
|
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-06 23:53:34 +00:00
|
|
|
|
2019-01-11 02:43:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
];
|
2016-04-26 21:28:39 +00: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 = [
|
2021-04-11 19:23:42 +00:00
|
|
|
"-Dpython=${python.interpreter}"
|
2020-10-25 21:17:24 +00:00
|
|
|
];
|
2019-01-11 02:43:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-04-11 19:23:42 +00:00
|
|
|
description = "Python 3 bindings for cairo";
|
2020-04-01 01:11:51 +00: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 20:49:13 +00:00
|
|
|
}
|