Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-dump: init at 1.0.8 #388988

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions pkgs/by-name/gi/git-dumper/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
lib,
python3,
fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
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
python3.pkgs.buildPythonApplication rec {
buildPythonApplication rec {

using python3.pkgs pins the derivation to a certain python version which is not ideal

pname = "git-dumper";
version = "1.0.8";
pyproject = true;

src = fetchFromGitHub {
owner = "arthaud";
repo = "git-dumper";
rev = version;
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
rev = version;
tag = version;

hash = "sha256-XU+6Od+mC8AV+w7sd8JaMB2Lc81ekeDLDiGGNu6bU0A=";
};

build-system = [
python3.pkgs.setuptools
Copy link
Member

Choose a reason for hiding this comment

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

same here, use python3Packages.setuptools

];

dependencies = with python3.pkgs; [
Copy link
Member

Choose a reason for hiding this comment

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

same here

beautifulsoup4
dulwich
pysocks
requests
requests-pkcs12
];

pythonImportsCheck = [
"git_dumper"
];

meta = {
description = "Tool to dump a git repository from a website";
homepage = "https://github.com/arthaud/git-dumper";
changelog = "https://github.com/arthaud/git-dumper/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yechielw ];
mainProgram = "git-dumper";
};
}