nixpkgs/pkgs/by-name/py/pypi-mirror/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
673 B
Nix
Raw Normal View History

2021-08-15 23:37:12 +00:00
{ fetchFromGitHub
, lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "pypi-mirror";
version = "5.2.1";
2024-10-01 06:11:46 +00:00
pyproject = true;
2021-08-15 23:37:12 +00:00
src = fetchFromGitHub {
owner = "montag451";
repo = pname;
2022-05-25 11:55:40 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-hRqQDYgOKpv4jmNvyrt/+EInPM/Xwsr3IjtrySAGRgY=";
2021-08-15 23:37:12 +00:00
};
2024-10-01 06:11:46 +00:00
build-system = [ python3.pkgs.setuptools ];
2021-08-15 23:37:12 +00:00
pythonImportsCheck = [ "pypi_mirror" ];
meta = with lib; {
description = "Script to create a partial PyPI mirror";
mainProgram = "pypi-mirror";
2021-08-15 23:37:12 +00:00
homepage = "https://github.com/montag451/pypi-mirror";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}