mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-02 14:55:25 +03:00
e0d25af360
- 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
24 lines
458 B
Nix
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
|