flattenReferencesGraph: use lib.fileset instead of gitignoreSource

This commit is contained in:
Adrian Gierakowski 2024-11-29 22:00:15 +00:00
parent 266283bec3
commit 9ae0f77577

View File

@ -1,19 +1,22 @@
{
callPackage,
lib,
nix-gitignore,
python3Packages,
}:
let
inherit (lib) fileset;
helpers = callPackage ./helpers.nix { };
pythonPackages = python3Packages;
in
pythonPackages.buildPythonApplication {
version = "0.1.0";
pname = "flatten-references-graph";
# Note: this uses only ./src/.gitignore
src = nix-gitignore.gitignoreSource [ ] ./src;
src = fileset.toSource {
root = ./src;
fileset = fileset.difference ./src (fileset.maybeMissing ./src/__pycache__);
};
propagatedBuildInputs = with pythonPackages; [
igraph