mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 21:57:02 +03:00
python2Packages.pycairo: init at 1.18.2
Required for e.g. gimp.
This commit is contained in:
parent
e5eb701c6e
commit
7f0e7c8586
49
pkgs/development/python-modules/pycairo/1.18.nix
Normal file
49
pkgs/development/python-modules/pycairo/1.18.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, pkg-config
|
||||
, cairo
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycairo";
|
||||
version = "1.18.2";
|
||||
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pygobject";
|
||||
repo = "pycairo";
|
||||
rev = "v${version}";
|
||||
sha256 = "142145a2whvlk92jijrbf3i2bqrzmspwpysj0bfypw0krzi0aa6j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dpython=${python.interpreter}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python 2 bindings for cairo";
|
||||
homepage = "https://pycairo.readthedocs.io/";
|
||||
license = with licenses; [ lgpl21Only mpl11 ];
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
}
|
@ -391,6 +391,10 @@ with self; with super; {
|
||||
|
||||
pyblosxom = callPackage ../development/python-modules/pyblosxom { };
|
||||
|
||||
pycairo = callPackage ../development/python-modules/pycairo/1.18.nix {
|
||||
inherit (pkgs) meson;
|
||||
};
|
||||
|
||||
pycangjie = disabled pycangjie;
|
||||
|
||||
pycarddav = callPackage ../development/python-modules/pycarddav { };
|
||||
|
Loading…
Reference in New Issue
Block a user