Skip to content

python3Packages.csv2md: init at 1.1.1#236913

Closed
MatthewCroughan wants to merge 1 commit intoNixOS:masterfrom
MatthewCroughan:mc/csv2md
Closed

python3Packages.csv2md: init at 1.1.1#236913
MatthewCroughan wants to merge 1 commit intoNixOS:masterfrom
MatthewCroughan:mc/csv2md

Conversation

@MatthewCroughan
Copy link
Contributor

Description of changes

Adds csv2md to nixpkgs

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jun 9, 2023
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jun 9, 2023
@dansbandit
Copy link
Contributor

Result of nixpkgs-review pr 236913 run on x86_64-darwin 1

4 packages built:
  • python310Packages.csv2md
  • python310Packages.csv2md.dist
  • python311Packages.csv2md
  • python311Packages.csv2md.dist


buildPythonPackage rec {
pname = "csv2md";
version = "1.1.1";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


buildPythonPackage rec {
pname = "csv2md";
version = "1.1.1";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "1.1.1";
version = "1.1.1";
pyproject = true;

Could you please set pyproject = true?
https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md#buildpythonpackage-parameters-buildpythonpackage-parameters


src = fetchFromGitHub {
owner = "lzakharov";
repo = pname;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
repo = pname;
repo = "csv2md";

pname and repo are semantically different, so please avoid reusing pname.

owner = "lzakharov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-fyXM88hawO6Q9pwMgVtjXaPVEaP36TOmoYL0c7RFDZ4=";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sha256 = "sha256-fyXM88hawO6Q9pwMgVtjXaPVEaP36TOmoYL0c7RFDZ4=";
hash = "sha256-fyXM88hawO6Q9pwMgVtjXaPVEaP36TOmoYL0c7RFDZ4=";

rev = "v${version}";
sha256 = "sha256-fyXM88hawO6Q9pwMgVtjXaPVEaP36TOmoYL0c7RFDZ4=";
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


meta = {
homepage = "https://github.com/lzakharov/csv2md";
description = "Command line tool for converting CSV files into Markdown tables.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "Command line tool for converting CSV files into Markdown tables.";
description = "Command line tool for converting CSV files into Markdown tables";

Please don't include a trailing period.
https://nixos.org/manual/nixpkgs/stable/#var-meta-description

description = "Command line tool for converting CSV files into Markdown tables.";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.matthewcroughan ];
platforms = lib.platforms.all;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
platforms = lib.platforms.all;

We don't need to set platforms for python package since it is already set by default.

@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 19, 2024
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 4, 2024
@ghost ghost closed this Dec 19, 2024
@ghost ghost marked this as a duplicate of #298707 Jan 22, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants