Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
95 lines (74 loc) · 2.31 KB
/
Copy pathflake.nix
File metadata and controls
95 lines (74 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
description = "PaStA - Patch Stack Analysis";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
# mail thread representation (MailCharacteristics, pasta_prepare_evaluation)
anytree
# date parsing for mail headers (Util.py)
dateparser
# fuzzy patch similarity scoring (PatchEvaluation.py, pasta_check_mbox)
thefuzz
# git repository access: pygit2 for low-level, gitpython for pasta_patch_descriptions
pygit2
gitpython
# maintainer graph analysis (MAINTAINERS.py, pasta_maintainers_stats)
networkx
# cluster quality metrics (pasta_compare_clusters)
scikit-learn
# progress bars (MAINTAINERS.py, pasta_upstream_duration)
tqdm
# HTTP requests for mbox fetching (Mbox.py)
requests
# interactive development
ipython
]);
rEnv = pkgs.rWrapper.override {
packages = with pkgs.rPackages; [
# analyses/*.R scripts for patch statistics and visualisation
assertthat
dplyr
ggplot2
ggraph
igraph
lubridate
RColorBrewer
reshape2
tikzDevice
];
};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
pythonEnv
rEnv
# version control
git
# filterdiff: convert context diffs to unified (Repository/Patch.py)
patchutils
# formail: split mbox files for mailbox processing (process_mailbox_maildir.sh)
procmail
# get_maintainer.pl is a perl script from the Linux kernel tree
perl
# interactive pager for pasta rate/show_cluster (Util.py)
less
# live process inspection and profiling
py-spy
(pkgs.texliveBasic.withPackages (ps: with ps; [
biblatex
biblatex-ieee
collection-publishers
latexmk
collection-latexextra
]))
];
shellHook = ''
export PYTHONPATH="${self}:$PYTHONPATH"
'';
};
};
}