python2Packages.pycairo: init at 1.18.2

Required for e.g. gimp.
This commit is contained in:
Robert Schütz 2021-04-11 21:25:49 +02:00
parent e5eb701c6e
commit 7f0e7c8586
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, fetchFromGitHub
, meson
, ninja
, buildPythonPackage
, pytestCheckHook
, pkg-config
, cairo
, python
}:
buildPythonPackage rec {
pname = "pycairo";
version = "1.18.2";
format = "other";
src = fetchFromGitHub {
owner = "pygobject";
repo = "pycairo";
rev = "v${version}";
sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
cairo
];
checkInputs = [
pytestCheckHook
];
mesonFlags = [
"-Dpython=${python.interpreter}"
];
meta = with lib; {
description = "Python 2 bindings for cairo";
homepage = "https://pycairo.readthedocs.io/";
license = with licenses; [ lgpl21Only mpl11 ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}

View File

@ -391,6 +391,10 @@ with self; with super; {
pyblosxom = callPackage ../development/python-modules/pyblosxom { }; pyblosxom = callPackage ../development/python-modules/pyblosxom { };
pycairo = callPackage ../development/python-modules/pycairo/1.18.nix {
inherit (pkgs) meson;
};
pycangjie = disabled pycangjie; pycangjie = disabled pycangjie;
pycarddav = callPackage ../development/python-modules/pycarddav { }; pycarddav = callPackage ../development/python-modules/pycarddav { };