Show More
@@ -1,56 +1,57 b'' | |||||
1 | # Overrides for the generated python-packages.nix |
|
1 | # Overrides for the generated python-packages.nix | |
2 | # |
|
2 | # | |
3 | # This function is intended to be used as an extension to the generated file |
|
3 | # This function is intended to be used as an extension to the generated file | |
4 | # python-packages.nix. The main objective is to add needed dependencies of C |
|
4 | # python-packages.nix. The main objective is to add needed dependencies of C | |
5 | # libraries and tweak the build instructions where needed. |
|
5 | # libraries and tweak the build instructions where needed. | |
6 |
|
6 | |||
7 | { pkgs, basePythonPackages }: |
|
7 | { pkgs, basePythonPackages }: | |
8 |
|
8 | |||
9 | let |
|
9 | let | |
10 | sed = "sed -i"; |
|
10 | sed = "sed -i"; | |
11 | in |
|
11 | in | |
12 |
|
12 | |||
13 | self: super: { |
|
13 | self: super: { | |
14 |
|
14 | |||
15 | subvertpy = super.subvertpy.override (attrs: { |
|
15 | subvertpy = super.subvertpy.override (attrs: { | |
16 | SVN_PREFIX = "${pkgs.subversion}"; |
|
16 | # TODO: johbo: Remove the "or" once we drop 16.03 support | |
|
17 | SVN_PREFIX = "${pkgs.subversion.dev or pkgs.subversion}"; | |||
17 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ |
|
18 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | |
18 | pkgs.aprutil |
|
19 | pkgs.aprutil | |
19 | pkgs.subversion |
|
20 | pkgs.subversion | |
20 | ]; |
|
21 | ]; | |
21 | preBuild = pkgs.lib.optionalString pkgs.stdenv.isDarwin '' |
|
22 | preBuild = pkgs.lib.optionalString pkgs.stdenv.isDarwin '' | |
22 | ${sed} -e "s/'gcc'/'clang'/" setup.py |
|
23 | ${sed} -e "s/'gcc'/'clang'/" setup.py | |
23 | ''; |
|
24 | ''; | |
24 | }); |
|
25 | }); | |
25 |
|
26 | |||
26 | mercurial = super.mercurial.override (attrs: { |
|
27 | mercurial = super.mercurial.override (attrs: { | |
27 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ |
|
28 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | |
28 | self.python.modules.curses |
|
29 | self.python.modules.curses | |
29 | ] ++ pkgs.lib.optional pkgs.stdenv.isDarwin |
|
30 | ] ++ pkgs.lib.optional pkgs.stdenv.isDarwin | |
30 | pkgs.darwin.apple_sdk.frameworks.ApplicationServices; |
|
31 | pkgs.darwin.apple_sdk.frameworks.ApplicationServices; | |
31 | }); |
|
32 | }); | |
32 |
|
33 | |||
33 | pyramid = super.pyramid.override (attrs: { |
|
34 | pyramid = super.pyramid.override (attrs: { | |
34 | postFixup = '' |
|
35 | postFixup = '' | |
35 | wrapPythonPrograms |
|
36 | wrapPythonPrograms | |
36 | # TODO: johbo: "wrapPython" adds this magic line which |
|
37 | # TODO: johbo: "wrapPython" adds this magic line which | |
37 | # confuses pserve. |
|
38 | # confuses pserve. | |
38 | ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped |
|
39 | ${sed} '/import sys; sys.argv/d' $out/bin/.pserve-wrapped | |
39 | ''; |
|
40 | ''; | |
40 | }); |
|
41 | }); | |
41 |
|
42 | |||
42 | Pyro4 = super.Pyro4.override (attrs: { |
|
43 | Pyro4 = super.Pyro4.override (attrs: { | |
43 | # TODO: Was not able to generate this version, needs further |
|
44 | # TODO: Was not able to generate this version, needs further | |
44 | # investigation. |
|
45 | # investigation. | |
45 | name = "Pyro4-4.35"; |
|
46 | name = "Pyro4-4.35"; | |
46 | src = pkgs.fetchurl { |
|
47 | src = pkgs.fetchurl { | |
47 | url = "https://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.35.src.tar.gz"; |
|
48 | url = "https://pypi.python.org/packages/source/P/Pyro4/Pyro4-4.35.src.tar.gz"; | |
48 | md5 = "cbe6cb855f086a0f092ca075005855f3"; |
|
49 | md5 = "cbe6cb855f086a0f092ca075005855f3"; | |
49 | }; |
|
50 | }; | |
50 | }); |
|
51 | }); | |
51 |
|
52 | |||
52 | # Avoid that setuptools is replaced, this leads to trouble |
|
53 | # Avoid that setuptools is replaced, this leads to trouble | |
53 | # with buildPythonPackage. |
|
54 | # with buildPythonPackage. | |
54 | setuptools = basePythonPackages.setuptools; |
|
55 | setuptools = basePythonPackages.setuptools; | |
55 |
|
56 | |||
56 | } |
|
57 | } |
General Comments 0
You need to be logged in to leave comments.
Login now