Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 826 B view raw
1{ lib, fetchFromGitHub, meson, ninja, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPy3k }: 2 3buildPythonPackage rec { 4 pname = "pycairo"; 5 version = "1.18.2"; 6 7 format = "other"; 8 9 src = fetchFromGitHub { 10 owner = "pygobject"; 11 repo = "pycairo"; 12 rev = "v${version}"; 13 sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j"; 14 }; 15 16 nativeBuildInputs = [ 17 meson 18 ninja 19 pkgconfig 20 ]; 21 22 buildInputs = [ 23 cairo 24 xlibsWrapper 25 ]; 26 27 checkInputs = [ pytest ]; 28 29 mesonFlags = [ "-Dpython=${if isPy3k then "python3" else "python"}" ]; 30 31 meta = with lib; { 32 description = "Python 2/3 bindings for cairo"; 33 homepage = "https://pycairo.readthedocs.io/"; 34 license = with licenses; [ lgpl2 mpl11 ]; 35 platforms = lib.platforms.linux ++ lib.platforms.darwin; 36 }; 37}