diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-11 21:25:49 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-04-12 13:20:39 +0200 |
commit | 7f0e7c858611890bf6fa36a4274467a1c7fccd1e (patch) | |
tree | f85435c651722d32e94cb3035ff009fa3920fc74 /pkgs/development/python-modules/pycairo/1.18.nix | |
parent | e5eb701c6e154e4510df09ee02e4f09d6b5f1e43 (diff) | |
download | nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar.gz nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar.bz2 nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar.lz nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar.xz nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.tar.zst nixpkgs-7f0e7c858611890bf6fa36a4274467a1c7fccd1e.zip |
python2Packages.pycairo: init at 1.18.2
Required for e.g. gimp.
Diffstat (limited to 'pkgs/development/python-modules/pycairo/1.18.nix')
-rw-r--r-- | pkgs/development/python-modules/pycairo/1.18.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pycairo/1.18.nix b/pkgs/development/python-modules/pycairo/1.18.nix new file mode 100644 index 00000000000..0a51c78c584 --- /dev/null +++ b/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; + }; +} |