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