mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
53 lines
865 B
Nix
53 lines
865 B
Nix
{ lib
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
, pkg-config
|
|
, cairo
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycairo";
|
|
version = "1.20.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pygobject";
|
|
repo = "pycairo";
|
|
rev = "v${version}";
|
|
sha256 = "0ifw4wjbml512w9kqj80y9gfqa7fkgfa1zkvi478k5krghjgk3lr";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|