dream2nix/pkgs/fetchPipMetadata/package.nix
DavHau e0d25af360 refactor(fetchPipMetadata)
- add flake-module.nix
- remove custom logic to find the repo root
- use findRoot script to find repo root
- use gitMinimal instead of git
- use separate python version for lock script than the python version to lock for. This prevents rebuilds and allows defining a standalone fetchPipMetadata package
2023-09-03 22:47:21 +00:00

24 lines
458 B
Nix

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