mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
overrides: Create addPbr abstraction
This commit is contained in:
parent
fbc86b40d4
commit
cacab99101
1 changed files with 17 additions and 41 deletions
|
@ -36,6 +36,12 @@ let
|
||||||
) else drv
|
) else drv
|
||||||
);
|
);
|
||||||
|
|
||||||
|
addPbr = drv: drv.overridePythonAttrs (
|
||||||
|
old: {
|
||||||
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -792,11 +798,7 @@ in
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
lockfile = super.lockfile.overridePythonAttrs (
|
lockfile = addPbr super.lockfile;
|
||||||
old: {
|
|
||||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
lxml = super.lxml.overridePythonAttrs (
|
lxml = super.lxml.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
|
@ -910,9 +912,7 @@ in
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
|
||||||
});
|
});
|
||||||
|
|
||||||
mongomock = super.mongomock.overridePythonAttrs (oa: {
|
mongomock = addPbr super.mongomock;
|
||||||
buildInputs = oa.buildInputs ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
mpi4py = super.mpi4py.overridePythonAttrs (
|
mpi4py = super.mpi4py.overridePythonAttrs (
|
||||||
old:
|
old:
|
||||||
|
@ -945,11 +945,7 @@ in
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
munch = super.munch.overridePythonAttrs (
|
munch = addPbr super.munch;
|
||||||
old: {
|
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
mypy = super.mypy.overridePythonAttrs (
|
mypy = super.mypy.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
|
@ -1643,21 +1639,11 @@ in
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
requests-mock = super.requests-mock.overridePythonAttrs (
|
requests-mock = addPbr super.requests-mock;
|
||||||
old: {
|
|
||||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ super.pbr ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
requests-unixsocket = super.requests-unixsocket.overridePythonAttrs (
|
requests-unixsocket = addPbr super.requests-unixsocket;
|
||||||
old: {
|
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
requestsexceptions = super.requestsexceptions.overridePythonAttrs (old: {
|
requestsexceptions = addPbr super.requestsexceptions;
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
rlp = super.rlp.overridePythonAttrs {
|
rlp = super.rlp.overridePythonAttrs {
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
@ -2203,17 +2189,11 @@ in
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.graphviz ];
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.graphviz ];
|
||||||
});
|
});
|
||||||
|
|
||||||
pyjsg = super.pyjsg.overridePythonAttrs (old: {
|
pyjsg = addPbr super.pyjsg;
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
pyshex = super.pyshex.overridePythonAttrs (old: {
|
pyshex = addPbr super.pyshex;
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
pyshexc = super.pyshexc.overridePythonAttrs (old: {
|
pyshexc = addPbr super.pyshexc;
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
pysqlite = super.pysqlite.overridePythonAttrs (old: {
|
pysqlite = super.pysqlite.overridePythonAttrs (old: {
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.sqlite ];
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.sqlite ];
|
||||||
|
@ -2223,13 +2203,9 @@ in
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.setuptools-scm-git-archive ];
|
||||||
});
|
});
|
||||||
|
|
||||||
shexjsg = super.shexjsg.overridePythonAttrs (old: {
|
shexjsg = addPbr super.shexjsg;
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
sparqlslurper = super.sparqlslurper.overridePythonAttrs (old: {
|
sparqlslurper = addPbr super.sparqlslurper;
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ];
|
|
||||||
});
|
|
||||||
|
|
||||||
tomlkit = addPoetry { drv = super.tomlkit; };
|
tomlkit = addPoetry { drv = super.tomlkit; };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue