python3Packages.silver-platter: init at 0.8.1

This adds the Python bindings that were previously in the repo as
`silver-platter` at the top level. These are Python version dependent
now, so they live inside the `python3Packages` subtree.
This commit is contained in:
Luke Granger-Brown
2026-01-28 02:38:55 +00:00
parent 2bd9b7d670
commit 6e4f96ca6a
3 changed files with 70 additions and 0 deletions
@@ -58,6 +58,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.tests = {
python3-bindings = python3.pkgs.silver-platter;
};
meta = {
description = "Automate the creation of merge proposals for scriptable changes";
homepage = "https://jelmer.uk/code/silver-platter";
@@ -0,0 +1,64 @@
{
lib,
stdenv,
buildPythonPackage,
pkgs,
pkg-config,
rustPlatform,
cargo,
rustc,
libiconv,
openssl,
setuptools,
setuptools-rust,
breezy,
dulwich,
jinja2,
pyyaml,
ruamel-yaml,
}:
let
inherit (pkgs) silver-platter;
in
buildPythonPackage {
inherit (silver-platter)
pname
version
src
cargoDeps
;
pyproject = true;
dependencies = [
setuptools
breezy
dulwich
jinja2
pyyaml
ruamel-yaml
];
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
cargo
rustc
]
++ lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
pythonImportsCheck = [ "silver_platter" ];
meta = {
inherit (silver-platter.meta)
description
homepage
license
maintainers
;
};
}
+2
View File
@@ -17327,6 +17327,8 @@ self: super: with self; {
sigtools = callPackage ../development/python-modules/sigtools { };
silver-platter = callPackage ../development/python-modules/silver-platter { };
simanneal = callPackage ../development/python-modules/simanneal { };
simber = callPackage ../development/python-modules/simber { };