Skip to content

Commit

Permalink
Move package description and homepage to Cargo.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
  • Loading branch information
wiktor-k committed Nov 23, 2023
1 parent 1d4b297 commit 0148d7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "pysequoia"
version = "0.1.20"
edition = "2021"
description = "Python bindings for Sequoia PGP"
homepage = "https://github.com/wiktor-k/pysequoia"
repository = "https://github.com/wiktor-k/pysequoia"

# The crate is useless for Rust clients, it's mainly used via Python:
# https://pypi.org/project/pysequoia/
Expand Down
6 changes: 1 addition & 5 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
# See https://github.com/mhwombat/nix-for-numbskulls/blob/main/flakes.md
# for a brief overview of what each section in a flake should or can contain.

# TODO: Fix this to something better
description = "a very simple and friendly flake";
description = "Flake for PySequoia Python package";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
Expand Down
6 changes: 3 additions & 3 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pysequoia" ];

meta = with lib; {
description = "This library provides OpenPGP facilities in Python through the Sequoia PGP library";
downloadPage = "https://codeberg.org/wiktor/pysequoia";
homepage = "https://sequoia-pgp.gitlab.io/pysequoia";
description = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.description;
downloadPage = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.repository;
homepage = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.homepage;
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
};
Expand Down

0 comments on commit 0148d7e

Please sign in to comment.