Initial NixOS flake config
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{ fetchFromGitHub, python3, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "wordreaper";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nemorous";
|
||||
repo = "wordreaper";
|
||||
rev = "7391e2055211ab1dd80d3631570a15ac026f824a";
|
||||
hash = "sha256-pZpKL2FHnbuYCMkaVYqo3SuIUvbepgE39byYHcbPo3M=";
|
||||
};
|
||||
|
||||
pyproject = true;
|
||||
build-system = with python3Packages; [ setuptools wheel ];
|
||||
dependencies = with python3Packages; [
|
||||
beautifulsoup4
|
||||
colorama
|
||||
psutil
|
||||
requests
|
||||
tqdm
|
||||
wordninja
|
||||
];
|
||||
|
||||
# Upstream's package-data glob excludes rules/hybrid/*.
|
||||
postInstall = ''
|
||||
cp -r word_reaper/rules/* "$out/${python3.sitePackages}/word_reaper/rules/"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "word_reaper" ];
|
||||
doCheck = false; # Upstream ships no test suite.
|
||||
}
|
||||
Reference in New Issue
Block a user