mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python310Packages
|
|
, testers
|
|
, stig
|
|
}:
|
|
|
|
python310Packages.buildPythonApplication rec {
|
|
pname = "stig";
|
|
# This project has a different concept for pre release / alpha,
|
|
# Read the project's README for details: https://github.com/rndusr/stig#stig
|
|
version = "0.12.10a0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rndusr";
|
|
repo = "stig";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lSFI4/DxWl17KFgLXZ7c5nW/e5IUGN7s8Gm6wTM5ZWg=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python310Packages; [
|
|
urwid
|
|
urwidtrees
|
|
aiohttp
|
|
async-timeout
|
|
pyxdg
|
|
blinker
|
|
natsort
|
|
setproctitle
|
|
];
|
|
|
|
nativeCheckInputs = with python310Packages; [
|
|
asynctest
|
|
pytestCheckHook
|
|
];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
preCheck = ''
|
|
export LC_ALL=C
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# Almost all tests fail in this file, it is reported upstream in:
|
|
# https://github.com/rndusr/stig/issues/214 , and upstream fails to
|
|
# reproduce the issue unfortunately.
|
|
"tests/client_test/aiotransmission_test/api_settings_test.py"
|
|
];
|
|
disabledTests = [
|
|
# Another failure with similar circumstances to the above
|
|
"test_candidates_are_sorted_case_insensitively"
|
|
];
|
|
|
|
passthru.tests = testers.testVersion {
|
|
package = stig;
|
|
command = "stig -v";
|
|
version = "stig version ${version}";
|
|
};
|
|
|
|
# https://github.com/rndusr/stig/issues/214#issuecomment-1995651219
|
|
dontUsePytestCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "TUI and CLI for the BitTorrent client Transmission";
|
|
homepage = "https://github.com/rndusr/stig";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|