nixpkgs/pkgs/development/python-modules/pycairo/default.nix

53 lines
865 B
Nix
Raw Normal View History

{ lib
, pythonOlder
, fetchFromGitHub
, meson
, ninja
, buildPythonPackage
, pytestCheckHook
, pkg-config
, cairo
, python
}:
buildPythonPackage rec {
pname = "pycairo";
version = "1.20.1";
disabled = pythonOlder "3.6";
format = "other";
src = fetchFromGitHub {
owner = "pygobject";
repo = "pycairo";
rev = "v${version}";
sha256 = "09aisph7ycgb4xi2xglvrn59i3cyqms8jbb876cl9763g7yqbcr6";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
2018-04-06 23:53:34 +00:00
buildInputs = [
cairo
];
checkInputs = [
pytestCheckHook
];
2015-11-08 07:21:58 +00:00
mesonFlags = [
"-Dpython=${python.interpreter}"
];
meta = with lib; {
description = "Python 3 bindings for cairo";
homepage = "https://pycairo.readthedocs.io/";
license = with licenses; [ lgpl21Only mpl11 ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}