mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.pyglet : move to separate expression
This commit is contained in:
parent
282216c635
commit
ac35d9884b
27
pkgs/development/python-modules/pyglet/default.nix
Normal file
27
pkgs/development/python-modules/pyglet/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, mesa, xorg, freetype, fontconfig}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.2.4";
|
||||
pname = "pyglet";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9f62ffbbcf2b202d084bf158685e77d28b8f4f5f2738f4c5e63a947a07503445";
|
||||
};
|
||||
|
||||
patchPhase = let
|
||||
libs = [ mesa xorg.libX11 freetype fontconfig ];
|
||||
paths = builtins.concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
|
||||
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.pyglet.org/";
|
||||
description = "A cross-platform windowing and multimedia library";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.mesaPlatforms;
|
||||
};
|
||||
}
|
@ -17790,29 +17790,7 @@ in {
|
||||
|
||||
PyGithub = callPackage ../development/python-modules/pyGithub {};
|
||||
|
||||
pyglet = buildPythonPackage rec {
|
||||
name = "pyglet-${version}";
|
||||
version = "1.2.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pyglet/pyglet-${version}.tar.gz";
|
||||
sha256 = "9f62ffbbcf2b202d084bf158685e77d28b8f4f5f2738f4c5e63a947a07503445";
|
||||
};
|
||||
|
||||
patchPhase = let
|
||||
libs = [ pkgs.mesa pkgs.xorg.libX11 pkgs.freetype pkgs.fontconfig ];
|
||||
paths = concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
|
||||
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.pyglet.org/";
|
||||
description = "A cross-platform windowing and multimedia library";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.mesaPlatforms;
|
||||
};
|
||||
};
|
||||
pyglet = callPackage ../development/python-modules/pyglet {};
|
||||
|
||||
pygments = callPackage ../development/python-modules/Pygments { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user