dream2nix/pkgs/fetchPipMetadata/package.nix
2023-10-08 14:28:50 +02:00

27 lines
530 B
Nix

{
lib,
# This python is for the locking logic, not the python to lock packages for.
python3,
gitMinimal,
nix-prefetch-scripts,
}: let
package = python3.pkgs.buildPythonPackage {
name = "fetch-pip-metadata";
format = "pyproject";
src = ./src;
nativeBuildInputs = [
gitMinimal
python3.pkgs.pytestCheckHook
];
propagatedBuildInputs = with python3.pkgs; [
packaging
certifi
flit-core
nix-prefetch-scripts
python-dateutil
pip
];
};
in
package