
Package was not building with error, I removed the manual package overrides and it built fine. Also updated to the most recent unstable commit afterwards. From what I tested it seems to work fine. ``` error: builder for '/nix/store/15l75w52cxc77zwdqv2w41cz0sylky0q-python3.13-prompt-toolkit-1.0.18.drv' failed with exit code 1; last 21 log lines: > Sourcing python-remove-tests-dir-hook > Sourcing python-catch-conflicts-hook.sh > Sourcing python-remove-bin-bytecode-hook.sh > Sourcing pypa-build-hook > Using pypaBuildPhase > Sourcing python-runtime-deps-check-hook > Using pythonRuntimeDepsCheckHook > Sourcing pypa-install-hook > Using pypaInstallPhase > Sourcing python-imports-check-hook.sh > Using pythonImportsCheckPhase > Sourcing python-namespaces-hook > Sourcing python-catch-conflicts-hook.sh > Sourcing pytest-check-hook > Using pytestCheckPhase > Running phase: unpackPhase > unpacking source archive /nix/store/hxiafm537za17sivpcljvqr6qlsclc8n-prompt_toolkit-1.0.18.tar.gz > source root is prompt_toolkit-1.0.18 > setting SOURCE_DATE_EPOCH to timestamp 1570133629 of file "prompt_toolkit-1.0.18/setup.cfg" > Running phase: patchPhase > substitute(): ERROR: file 'src/prompt_toolkit/__init__.py' does not exist For full logs, run: nix log /nix/store/15l75w52cxc77zwdqv2w41cz0sylky0q-python3.13-prompt-toolkit-1.0.18.drv ```
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
fetchPypi,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "haxor-news";
|
|
version = "unstable-2022-04-22";
|
|
format = "setuptools";
|
|
|
|
# haven't done a stable release in 3+ years, but actively developed
|
|
src = fetchFromGitHub {
|
|
owner = "donnemartin";
|
|
repo = "haxor-news";
|
|
rev = "8294e4498858f036a344b06e82f08b834c2a8270";
|
|
hash = "sha256-0eVk5zj7F3QDFvV0Kv9aeV1oeKxr/Kza6M3pK6hyYuY=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
click
|
|
colorama
|
|
requests
|
|
pygments
|
|
prompt-toolkit
|
|
six
|
|
];
|
|
|
|
# will fail without pre-seeded config files
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
unittestCheckHook
|
|
mock
|
|
];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"tests"
|
|
"-v"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/donnemartin/haxor-news";
|
|
description = "Browse Hacker News like a haxor";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
};
|
|
|
|
}
|