2021-08-15 23:37:12 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pypi-mirror";
|
2024-10-01 06:09:22 +00:00
|
|
|
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}";
|
2024-10-01 06:09:22 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|