nixpkgs/pkgs/development/tools/pypi-mirror/default.nix

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

25 lines
568 B
Nix
Raw Normal View History

2021-08-16 01:37:12 +02:00
{ fetchFromGitHub
, lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "pypi-mirror";
2022-01-19 10:06:56 +01:00
version = "4.2.0";
2021-08-16 01:37:12 +02:00
src = fetchFromGitHub {
owner = "montag451";
repo = pname;
rev = "v${version}";
2022-01-19 10:06:56 +01:00
sha256 = "1ci19bqyhig1s5myzw6klkiycd8k0lzhk3yqfx5fjirc2f0xpz5j";
2021-08-16 01:37:12 +02:00
};
pythonImportsCheck = [ "pypi_mirror" ];
meta = with lib; {
description = "A script to create a partial PyPI mirror";
homepage = "https://github.com/montag451/pypi-mirror";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}