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:
@@ -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
|
||||
;
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user