2021-08-22 07:53:02 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pypi-mirror";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "5.2.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "montag451";
|
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-bvnOieNs8pCDKuCSJx88vRxFPcOGWUj/i3mNS6E/nok=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pypi_mirror" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A script to create a partial PyPI mirror";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pypi-mirror";
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/montag451/pypi-mirror";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
|
|
|
};
|
|
|
|
}
|