c778945806
I'm sorry; I didn't notice it contained staging commits. This reverts commit17f5305b6c
, reversing changes made toa8a018ddc0
.
38 lines
826 B
Nix
38 lines
826 B
Nix
{ lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy3k }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycairo";
|
|
version = "1.18.2";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pygobject";
|
|
repo = "pycairo";
|
|
rev = "v${version}";
|
|
sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
xlibsWrapper
|
|
];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
mesonFlags = [ "-Dpython=${if isPy3k then "python3" else "python"}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python 2/3 bindings for cairo";
|
|
homepage = "https://pycairo.readthedocs.io/";
|
|
license = with licenses; [ lgpl2 mpl11 ];
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
};
|
|
}
|