Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python2Packages.pycairo: init at 1.18.2 #119185

Merged
merged 2 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/pycairo/1.18.nix
@@ -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;
};
}
9 changes: 6 additions & 3 deletions pkgs/development/python-modules/pycairo/default.nix
@@ -1,18 +1,21 @@
{ lib
, pythonOlder
, fetchFromGitHub
, meson
, ninja
, buildPythonPackage
, pytestCheckHook
, pkg-config
, cairo
, isPy3k
, python
}:

buildPythonPackage rec {
pname = "pycairo";
version = "1.20.0";

disabled = pythonOlder "3.6";

format = "other";

src = fetchFromGitHub {
Expand All @@ -37,11 +40,11 @@ buildPythonPackage rec {
];

mesonFlags = [
"-Dpython=${if isPy3k then "python3" else "python"}"
"-Dpython=${python.interpreter}"
];

meta = with lib; {
dotlambda marked this conversation as resolved.
Show resolved Hide resolved
description = "Python 2/3 bindings for cairo";
description = "Python 3 bindings for cairo";
homepage = "https://pycairo.readthedocs.io/";
license = with licenses; [ lgpl21Only mpl11 ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python2-packages.nix
Expand Up @@ -391,6 +391,10 @@ with self; with super; {

pyblosxom = callPackage ../development/python-modules/pyblosxom { };

pycairo = callPackage ../development/python-modules/pycairo/1.18.nix {
davidak marked this conversation as resolved.
Show resolved Hide resolved
inherit (pkgs) meson;
};

pycangjie = disabled pycangjie;

pycarddav = callPackage ../development/python-modules/pycarddav { };
Expand Down