Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created July 4, 2017 14:42
Show Gist options
  • Save exarkun/08f95bc6bef7afee5fecc54a01361568 to your computer and use it in GitHub Desktop.
Save exarkun/08f95bc6bef7afee5fecc54a01361568 to your computer and use it in GitHub Desktop.
# let
# remove = element: list: builtins.filter (x: x != element) list;
# pbr = pkgs: list: list ++ [ pkgs.pythonPackages.pbr ];
# in
{ pkgs, python }:
# remove Twisted from Automat.propagatedBuildInputs
# remove Twisted from incremental.propagatedBuildInputs
# remove fixtures from testtools.propagatedBuildInputs
# remove pyutil from zbase32 propagatedBuildInputs
# remove unittest2 from
# mock oauthlib testtools
# replace pbr in propagatedBuildInputs for
# fixtures mock testtools
self: super: {
"Automat" = python.overrideDerivation super."Automat" (old: {
propagatedBuildInputs = [
self."attrs"
self."six"
];
});
"incremental" = python.overrideDerivation super."incremental" (old: {
propagatedBuildInputs = [
];
});
"testtools" = python.overrideDerivation super."testtools" (old: {
propagatedBuildInputs = [
pkgs.pythonPackages.pbr
self."extras"
self."pbr"
self."python-mimeparse"
self."six"
self."traceback2"
];
});
"zbase32" = python.overrideDerivation super."zbase32" (old: {
propagatedBuildInputs = [
];
});
"mock" = python.overrideDerivation super."mock" (old: {
propagatedBuildInputs = [
pkgs.pythonPackages.pbr
self."Jinja2"
self."Pygments"
self."funcsigs"
self."six"
];
});
"oauthlib" = python.overrideDerivation super."oauthlib" (old: {
propagatedBuildInputs = [
self."blinker"
self."cryptography"
self."mock"
];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment