Skip to content

Commit

Permalink
overrides: Create addPbr abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jan 18, 2022
1 parent fbc86b4 commit cacab99
Showing 1 changed file with 17 additions and 41 deletions.
58 changes: 17 additions & 41 deletions overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ let
) else drv
);

addPbr = drv: drv.overridePythonAttrs (
old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
}
);

in

{
Expand Down Expand Up @@ -792,11 +798,7 @@ in
}
);

lockfile = super.lockfile.overridePythonAttrs (
old: {
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.pbr ];
}
);
lockfile = addPbr super.lockfile;

lxml = super.lxml.overridePythonAttrs (
old: {
Expand Down Expand Up @@ -910,9 +912,7 @@ in
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
});

mongomock = super.mongomock.overridePythonAttrs (oa: {
buildInputs = oa.buildInputs ++ [ self.pbr ];
});
mongomock = addPbr super.mongomock;

mpi4py = super.mpi4py.overridePythonAttrs (
old:
Expand Down Expand Up @@ -945,11 +945,7 @@ in
}
);

munch = super.munch.overridePythonAttrs (
old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
}
);
munch = addPbr super.munch;

mypy = super.mypy.overridePythonAttrs (
old: {
Expand Down Expand Up @@ -1643,21 +1639,11 @@ in
}
);

requests-mock = super.requests-mock.overridePythonAttrs (
old: {
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ super.pbr ];
}
);
requests-mock = addPbr super.requests-mock;

requests-unixsocket = super.requests-unixsocket.overridePythonAttrs (
old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pbr ];
}
);
requests-unixsocket = addPbr super.requests-unixsocket;

requestsexceptions = super.requestsexceptions.overridePythonAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [ self.pbr ];
});
requestsexceptions = addPbr super.requestsexceptions;

rlp = super.rlp.overridePythonAttrs {
preConfigure = ''
Expand Down Expand Up @@ -2203,17 +2189,11 @@ in
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.graphviz ];
});

pyjsg = super.pyjsg.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
});
pyjsg = addPbr super.pyjsg;

pyshex = super.pyshex.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
});
pyshex = addPbr super.pyshex;

pyshexc = super.pyshexc.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
});
pyshexc = addPbr super.pyshexc;

pysqlite = super.pysqlite.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.sqlite ];
Expand All @@ -2223,13 +2203,9 @@ in
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
});

shexjsg = super.shexjsg.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
});
shexjsg = addPbr super.shexjsg;

sparqlslurper = super.sparqlslurper.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
});
sparqlslurper = addPbr super.sparqlslurper;

tomlkit = addPoetry { drv = super.tomlkit; };

Expand Down

0 comments on commit cacab99

Please sign in to comment.