##// END OF EJS Templates
py3: packaging changes to build python37 packages, and make pip2nix work.
py3: packaging changes to build python37 packages, and make pip2nix work.

File last commit:

r981:55389aab python3
r981:55389aab python3
Show More
python-packages-overrides.nix
99 lines | 2.4 KiB | text/x-nix | NixLexer
/ pkgs / python-packages-overrides.nix
initial commit
r0 # Overrides for the generated python-packages.nix
#
# This function is intended to be used as an extension to the generated file
# python-packages.nix. The main objective is to add needed dependencies of C
# libraries and tweak the build instructions where needed.
nix: updated to 18.03 packages....
r472 { pkgs
, basePythonPackages
}:
initial commit
r0
let
sed = "sed -i";
nix: updated to 18.03 packages....
r472
initial commit
r0 in
self: super: {
requirements: added pygit2 into project
r723 "cffi" = super."cffi".override (attrs: {
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 buildInputs = with self; attrs.buildInputs ++ [
requirements: added pygit2 into project
r723 pkgs.libffi
];
});
dependencies: bumped gevent to 1.3.4
r473 "gevent" = super."gevent".override (attrs: {
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 propagatedBuildInputs = with self; attrs.propagatedBuildInputs ++ [
dependencies: bumped gevent to 1.3.4
r473 # NOTE: (marcink) odd requirements from gevent aren't set properly,
# thus we need to inject psutil manually
self."psutil"
];
});
nix: updated to 18.03 packages....
r472 "hgsubversion" = super."hgsubversion".override (attrs: {
initial commit
r0 propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
nix: updated to 18.03 packages....
r472 pkgs.sqlite
#basePythonPackages.sqlite3
self.mercurial
];
});
"subvertpy" = super."subvertpy".override (attrs: {
SVN_PREFIX = "${pkgs.subversion.dev}";
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 nativeBuildInputs = with self; attrs.nativeBuildInputs ++ [
nix: updated to 18.03 packages....
r472 pkgs.apr.dev
initial commit
r0 pkgs.aprutil
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 ];
buildInputs = with self; [
initial commit
r0 pkgs.subversion
];
});
nix: updated to 18.03 packages....
r472 "mercurial" = super."mercurial".override (attrs: {
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 nativeBuildInputs = with self; attrs.nativeBuildInputs ++ [
nix: updated to 18.03 packages....
r472 # self.python.modules.curses
dependencies: bind sqlite with hgsubversion
r320 ];
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 postInstall = ''
rm -f $out/${self.python.sitePackages}/hgext3rd/__pycache__/__init__.*.pyc
'';
});
"hg-evolve" = super."hg-evolve".override (attrs: {
postInstall = ''
rm -f $out/${self.python.sitePackages}/hgext3rd/__init__.py
rm -f $out/${self.python.sitePackages}/hgext3rd/__init__.pyc
'';
dependencies: bind sqlite with hgsubversion
r320 });
dependencies: dulwich, backported a patch to handle GIT references that are directories....
r531 "dulwich" = super."dulwich".override (attrs: {
patches = [
./patches/dulwich/handle-dir-refs.patch
];
});
requirements: added pygit2 into project
r723 "pygit2" = super."pygit2".override (attrs: {
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 nativeBuildInputs = with self; attrs.nativeBuildInputs ++ [
requirements: added pygit2 into project
r723 pkgs.libffi
pkgs.libgit2rc
];
packaging: switched to nix 20.03 packages and latest pip2nix code...
r970 buildInputs = with self; attrs.buildInputs ++ [
pkgs.libgit2rc
];
});
"py" = super."py".override (attrs: {
buildInputs = with self; attrs.buildInputs ++ [
self."setuptools-scm"
];
requirements: added pygit2 into project
r723 });
dependencies: dulwich, backported a patch to handle GIT references that are directories....
r531
py3: packaging changes to build python37 packages, and make pip2nix work.
r981 "zipp" = super."zipp".override (attrs: {
buildInputs = with self; attrs.buildInputs ++ [
self."toml"
];
});
nix: updated to 18.03 packages....
r472 # Avoid that base packages screw up the build process
inherit (basePythonPackages)
setuptools;
initial commit
r0
}