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 20, 2023
1 parent b2524a6 commit 6ffa081
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name = "pysequoia"
version = "0.1.20"
edition = "2021"
description = "Python bindings for Sequoia PGP"
homepage = "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 = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.description;

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.homepage;
homepage = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.homepage;
license = licenses.asl20;
maintainers = with maintainers; [ doronbehar ];
};
Expand Down

0 comments on commit 6ffa081

Please sign in to comment.