From 0148d7e0839da47d2db123e8176358adbb8c90f9 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Mon, 20 Nov 2023 11:04:28 +0100 Subject: [PATCH] Move package description and homepage to Cargo.toml Signed-off-by: Wiktor Kwapisiewicz --- Cargo.toml | 3 +++ flake.nix | 6 +----- package.nix | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0056e74..94634f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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/ diff --git a/flake.nix b/flake.nix index 6cdbf91..a6a30b8 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/package.nix b/package.nix index a64c9f4..ff6522e 100644 --- a/package.nix +++ b/package.nix @@ -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 ]; };