##// END OF EJS Templates
pip2nix: cleanups and NEW package
marcink -
r975:310656f4 python3
parent child Browse files
Show More
@@ -142,7 +142,7 b' let'
142 142 mkdir -p $out/bin
143 143
144 144 # expose python
145 ln -s ${self.python}/bin/python $out/bin/
145 ln -s ${pkgs.pythonWithSetuptools}/bin/python $out/bin/
146 146
147 147 # required binaries from dependencies
148 148 ln -s ${self.gunicorn}/bin/gunicorn $out/bin/
@@ -14,4 +14,12 b' rec {'
14 14 pythonPackages;
15 15 };
16 16
17 pip-tools = pythonPackages.pip-tools;
18
19 setuptools = pythonPackages.setuptools;
20
21 wheel = pythonPackages.wheel;
22
23 pip = pythonPackages.pip;
24
17 25 }
@@ -1,5 +1,9 b''
1 1 self: super: {
2 2
3 pythonWithSetuptools = self.python.withPackages(ps: with ps; [
4 setuptools
5 ]);
6
3 7 # change GIT version
4 8 # latest supported are in: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git
5 9 git = super.lib.overrideDerivation super.git (oldAttrs: {
@@ -68,5 +72,4 b' self: super: {'
68 72
69 73 });
70 74
71
72 75 }
@@ -26,7 +26,9 b' pkgs.stdenv.mkDerivation {'
26 26 buildInputs = [
27 27 # Allows to generate python packages
28 28 pip2nix.pip2nix
29 pythonPackages.pip-tools
29 pip2nix.pip
30 pip2nix.pip-tools
31
30 32 # compile using ffi
31 33 pkgs.libffi
32 34
@@ -49,11 +51,10 b' pkgs.stdenv.mkDerivation {'
49 51 export TMPDIR=/tmp
50 52 export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"
51 53 export LC_ALL="en_US.UTF-8"
54 export PYCURL_SSL_LIBRARY=openssl
52 55
53 56 # Custom prompt to distinguish from other dev envs.
54 57 export PS1="\n\[\033[1;32m\][pip2nix-generate-shell]$\[\033[0m\] "
55 58
56 export PYCURL_SSL_LIBRARY=openssl
57
58 59 '';
59 60 }
General Comments 0
You need to be logged in to leave comments. Login now