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

25 lines
568 B
Nix
Raw Normal View History

2021-08-15 23:37:12 +00:00
{ fetchFromGitHub
, lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "pypi-mirror";
2021-10-08 04:16:17 +00:00
version = "4.0.7";
2021-08-15 23:37:12 +00:00
src = fetchFromGitHub {
owner = "montag451";
repo = pname;
rev = "v${version}";
2021-10-08 04:16:17 +00:00
sha256 = "0sjzjvq2jnsr5mfyvkww3rfk3k5xcl8wa07q614850m0sn907laz";
2021-08-15 23:37:12 +00: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 ];
};
}