python-packages-overrides.nix
126 lines
| 2.7 KiB
| text/x-nix
|
NixLexer
/ pkgs / python-packages-overrides.nix
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. | ||||
r472 | { pkgs | |||
, basePythonPackages | ||||
}: | ||||
r0 | ||||
let | ||||
sed = "sed -i"; | ||||
r472 | ||||
r0 | in | |||
self: super: { | ||||
r723 | "cffi" = super."cffi".override (attrs: { | |||
buildInputs = [ | ||||
pkgs.libffi | ||||
]; | ||||
}); | ||||
r929 | "ipython" = super."ipython".override (attrs: { | |||
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | ||||
self."setuptools-scm" | ||||
]; | ||||
}); | ||||
r473 | "gevent" = super."gevent".override (attrs: { | |||
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | ||||
r929 | # NOTE: (marcink) odd requirements from gevent aren not set properly, | |||
r473 | # thus we need to inject psutil manually | |||
self."psutil" | ||||
]; | ||||
}); | ||||
r472 | "hgsubversion" = super."hgsubversion".override (attrs: { | |||
r0 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | |||
r472 | pkgs.sqlite | |||
#basePythonPackages.sqlite3 | ||||
self.mercurial | ||||
]; | ||||
}); | ||||
"subvertpy" = super."subvertpy".override (attrs: { | ||||
SVN_PREFIX = "${pkgs.subversion.dev}"; | ||||
propagatedBuildInputs = [ | ||||
pkgs.apr.dev | ||||
r0 | pkgs.aprutil | |||
pkgs.subversion | ||||
]; | ||||
}); | ||||
r472 | "mercurial" = super."mercurial".override (attrs: { | |||
propagatedBuildInputs = [ | ||||
# self.python.modules.curses | ||||
r320 | ]; | |||
}); | ||||
r531 | "dulwich" = super."dulwich".override (attrs: { | |||
patches = [ | ||||
./patches/dulwich/handle-dir-refs.patch | ||||
]; | ||||
}); | ||||
r723 | "pygit2" = super."pygit2".override (attrs: { | |||
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | ||||
pkgs.libffi | ||||
pkgs.libgit2rc | ||||
]; | ||||
}); | ||||
r531 | ||||
r919 | "pytest" = super."pytest".override (attrs: { | |||
patches = [ | ||||
./patches/pytest/setuptools.patch | ||||
]; | ||||
}); | ||||
r929 | "pytest-runner" = super."pytest-runner".override (attrs: { | |||
propagatedBuildInputs = [ | ||||
self."setuptools-scm" | ||||
]; | ||||
}); | ||||
"py" = super."py".override (attrs: { | ||||
propagatedBuildInputs = [ | ||||
self."setuptools-scm" | ||||
]; | ||||
}); | ||||
"configparser" = super."configparser".override (attrs: { | ||||
patches = [ | ||||
./patches/configparser/pyproject.patch | ||||
]; | ||||
propagatedBuildInputs = [ | ||||
self."setuptools-scm" | ||||
]; | ||||
}); | ||||
"importlib-metadata" = super."importlib-metadata".override (attrs: { | ||||
patches = [ | ||||
./patches/importlib_metadata/pyproject.patch | ||||
]; | ||||
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | ||||
self."setuptools-scm" | ||||
]; | ||||
r930 | }); | |||
r929 | "zipp" = super."zipp".override (attrs: { | |||
r930 | patches = [ | |||
./patches/zipp/pyproject.patch | ||||
]; | ||||
r929 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | |||
self."setuptools-scm" | ||||
]; | ||||
}); | ||||
r472 | # Avoid that base packages screw up the build process | |||
inherit (basePythonPackages) | ||||
setuptools; | ||||
r0 | ||||
} | ||||