##// END OF EJS Templates
py3: packaging, further fixes for newer code....
marcink -
r986:5009dce2 python3
parent child Browse files
Show More
@@ -86,7 +86,7 b' let'
86 propagatedBuildInputs =
86 propagatedBuildInputs =
87 attrs.propagatedBuildInputs or [] ++ [
87 attrs.propagatedBuildInputs or [] ++ [
88 pkgs.git
88 pkgs.git
89 pkgs.subversion
89 pkgs.subversionrc
90 ];
90 ];
91
91
92 preBuild = ''
92 preBuild = ''
@@ -176,7 +176,7 b' let'
176 # correct version. Wrapping is required so those can "import"
176 # correct version. Wrapping is required so those can "import"
177 # vcsserver python hooks.
177 # vcsserver python hooks.
178 pkgs.git
178 pkgs.git
179 pkgs.subversion
179 pkgs.subversionrc
180 ];
180 ];
181 # expose following attributed outside
181 # expose following attributed outside
182 passthru = {
182 passthru = {
@@ -198,10 +198,10 b' let'
198 do
198 do
199 wrapProgram $file \
199 wrapProgram $file \
200 --prefix PATH : ${pkgs.git}/bin \
200 --prefix PATH : ${pkgs.git}/bin \
201 --prefix PATH : ${pkgs.subversion}/bin \
201 --prefix PATH : ${pkgs.subversionrc}/bin \
202 --prefix PATH : ${pythonEnv}/bin \
202 --prefix PATH : ${pythonEnv}/bin \
203 --prefix PYTHONPATH : ${pythonEnv}/${pythonEnv.sitePackages} \
203 --prefix PYTHONPATH : ${pythonEnv}/${pythonEnv.sitePackages} \
204 --prefix PYTHONPATH : ${pkgs.subversion}/${pythonEnv.sitePackages} \
204 --prefix PYTHONPATH : ${pkgs.subversionrc}/${pythonEnv.sitePackages} \
205 --set PYTHONHASHSEED $RANDOM
205 --set PYTHONHASHSEED $RANDOM
206 done
206 done
207 echo "DONE: vcsserver binary wrapping"
207 echo "DONE: vcsserver binary wrapping"
@@ -21,14 +21,14 b' self: super: {'
21 });
21 });
22
22
23 libgit2rc = super.lib.overrideDerivation super.libgit2 (oldAttrs: {
23 libgit2rc = super.lib.overrideDerivation super.libgit2 (oldAttrs: {
24 name = "libgit2-0.28.2";
24 name = "libgit2-1.0.1";
25 version = "0.28.2";
25 version = "1.0.1";
26
26
27 src = self.fetchFromGitHub {
27 src = self.fetchFromGitHub {
28 owner = "libgit2";
28 owner = "libgit2";
29 repo = "libgit2";
29 repo = "libgit2";
30 rev = "v0.28.2";
30 rev = "v1.0.1";
31 sha256 = "0cm8fvs05rj0baigs2133q5a0sm3pa234y8h6hmwhl2bz9xq3k4b";
31 sha256 = "1cm8fvs05rj0baigs2133q5a0sm3pa234y8h6hmwhl2bz9xq3k4b";
32 };
32 };
33
33
34 cmakeFlags = [ "-DTHREADSAFE=ON" "-DUSE_HTTPS=no"];
34 cmakeFlags = [ "-DTHREADSAFE=ON" "-DUSE_HTTPS=no"];
@@ -43,21 +43,48 b' self: super: {'
43
43
44 });
44 });
45
45
46
47
46 # Override subversion derivation to
48 # Override subversion derivation to
47 # - activate python bindings
49 # - activate python bindings
48 subversion =
50 subversionrc =
51 let
52 py3c = self.python37Packages.buildPythonPackage rec {
53 pname = "py3c";
54 version = "1.0";
55 src = self.fetchurl {
56 url = "https://files.pythonhosted.org/packages/6a/aa/9f1a69a8c71e72553b281603633e42501de932aa4d9912bccbf9a2884093/py3c-1.0.tar.gz";
57 sha256 = "1h80jqi6r64kppxb4kshsiadrgc5hwk5arp3zcki01jf4ahknjz9";
58 };
59 format = "setuptools";
60 doCheck = false;
61 buildInputs = [];
62 checkInputs = [];
63 nativeBuildInputs = [];
64 propagatedBuildInputs = [];
65 meta = {
66 license = [ ];
67 };
68 };
69 in
70 let
71 pythonWithEnv = self.python37Packages.python.buildEnv.override {
72 extraLibs = [ py3c ];
73 };
74 in
49 let
75 let
50 subversionWithPython = super.subversion.override {
76 subversionWithPython = super.subversion.override {
51 httpSupport = true;
77 httpSupport = true; # client must support http
52 pythonBindings = true;
78 pythonBindings = true;
53 python = self.python37Packages.python;
79 python = pythonWithEnv;
54 };
80 };
81
55 in
82 in
56 super.lib.overrideDerivation subversionWithPython (oldAttrs: {
83 super.lib.overrideDerivation subversionWithPython (oldAttrs: {
57 name = "subversion-1.13.0";
84 name = "subversion-1.14.0";
58 src = self.fetchurl {
85 src = self.fetchurl {
59 url = "https://archive.apache.org/dist/subversion/subversion-1.13.0.tar.gz";
86 url = "https://archive.apache.org/dist/subversion/subversion-1.14.0.tar.gz";
60 sha256 = "0cb9p7f5hg0l4k32hz8vmvy2r45igchq5sh4m366za5q0c649bfs";
87 sha256 = "1l1px5kva5a13pi2rkxfgxfvypvl6bmbkdag6168fhayad3i2ggg";
61 };
88 };
62
89
63 ## use internal lz4/utf8proc because it is stable and shipped with SVN
90 ## use internal lz4/utf8proc because it is stable and shipped with SVN
@@ -65,7 +92,8 b' self: super: {'
65 " --with-lz4=internal"
92 " --with-lz4=internal"
66 " --with-utf8proc=internal"
93 " --with-utf8proc=internal"
67 ];
94 ];
68
69 });
95 });
70
96
97
98
71 }
99 }
@@ -54,9 +54,10 b' self: super: {'
54 nativeBuildInputs = with self; attrs.nativeBuildInputs ++ [
54 nativeBuildInputs = with self; attrs.nativeBuildInputs ++ [
55 pkgs.apr.dev
55 pkgs.apr.dev
56 pkgs.aprutil
56 pkgs.aprutil
57 pkgs.subversionrc
57 ];
58 ];
58 buildInputs = with self; attrs.buildInputs ++ [
59 buildInputs = with self; attrs.buildInputs ++ [
59 pkgs.subversion
60 pkgs.subversionrc
60 ];
61 ];
61 });
62 });
62
63
@@ -58,6 +58,23 b' self: super: {'
58 license = [ pkgs.lib.licenses.mit ];
58 license = [ pkgs.lib.licenses.mit ];
59 };
59 };
60 };
60 };
61 "cached-property" = super.buildPythonPackage rec {
62 pname = "cached-property";
63 version = "1.5.1";
64 src = fetchurl {
65 url = "https://files.pythonhosted.org/packages/57/8e/0698e10350a57d46b3bcfe8eff1d4181642fd1724073336079cb13c5cf7f/cached-property-1.5.1.tar.gz";
66 sha256 = "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj";
67 };
68 format = "setuptools";
69 doCheck = false;
70 buildInputs = [];
71 checkInputs = [];
72 nativeBuildInputs = [];
73 propagatedBuildInputs = [];
74 meta = {
75 license = [ pkgs.lib.licenses.bsdOriginal ];
76 };
77 };
61 "cffi" = super.buildPythonPackage rec {
78 "cffi" = super.buildPythonPackage rec {
62 pname = "cffi";
79 pname = "cffi";
63 version = "1.14.0";
80 version = "1.14.0";
@@ -579,19 +596,22 b' self: super: {'
579 };
596 };
580 "pygit2" = super.buildPythonPackage rec {
597 "pygit2" = super.buildPythonPackage rec {
581 pname = "pygit2";
598 pname = "pygit2";
582 version = "0.28.2";
599 version = "1.2.1";
583 src = fetchurl {
600 src = fetchurl {
584 url = "https://files.pythonhosted.org/packages/4c/64/88c2a4eb2d22ca1982b364f41ff5da42d61de791d7eb68140e7f8f7eb721/pygit2-0.28.2.tar.gz";
601 url = "https://files.pythonhosted.org/packages/d0/c6/33e2df5722e3adf49adc6a2d3c2cdb5a5247236fd8f2063a0c4d058116a1/pygit2-1.2.1.tar.gz";
585 sha256 = "11kzj5mjkspvplnpdb6bj8dcj6rgmkk986k8hjcklyg5yaxkz32d";
602 sha256 = "11q3a0p4mvzdskla0c6ffcrddldfbh7dc4p5l6xrriwri88j356y";
586 };
603 };
587 format = "setuptools";
604 format = "setuptools";
588 doCheck = false;
605 doCheck = false;
589 buildInputs = [];
606 buildInputs = [];
590 checkInputs = [];
607 checkInputs = [];
591 nativeBuildInputs = [];
608 nativeBuildInputs = [
609 self."setuptools"
610 self."wheel"
611 ];
592 propagatedBuildInputs = [
612 propagatedBuildInputs = [
613 self."cached-property"
593 self."cffi"
614 self."cffi"
594 self."six"
595 ];
615 ];
596 meta = {
616 meta = {
597 license = [ { fullName = "GPLv2 with linking exception"; } ];
617 license = [ { fullName = "GPLv2 with linking exception"; } ];
@@ -15,7 +15,7 b' msgpack-python==0.5.6'
15
15
16 pastedeploy==2.1.0
16 pastedeploy==2.1.0
17 pyramid==1.10.4
17 pyramid==1.10.4
18 pygit2==0.28.2
18 pygit2==1.2.1
19
19
20 repoze.lru==0.7
20 repoze.lru==0.7
21 redis==3.5.3
21 redis==3.5.3
General Comments 0
You need to be logged in to leave comments. Login now