Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, pythonOlder, fetchFromGitHub, meson, ninja, buildPythonPackage, pytestCheckHook, pkg-config, cairo, libxcrypt, python,}:
buildPythonPackage rec { pname = "pycairo"; version = "1.26.0";
disabled = pythonOlder "3.6";
format = "other";
src = fetchFromGitHub { owner = "pygobject"; repo = "pycairo"; rev = "refs/tags/v${version}"; hash = "sha256-AUnMPsGFkCgVKUdQfym35ZqrA48wq31BNsvc2puoCl8="; };
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ cairo ] ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ];
nativeCheckInputs = [ pytestCheckHook ];
mesonFlags = [ # This is only used for figuring out what version of Python is in # use, and related stuff like figuring out what the install prefix # should be, but it does need to be able to execute Python code. "-Dpython=${python.pythonOnBuildForHost.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; };}