mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 22:33:43 +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.
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "xcat";
|
|
version = "1.2.0";
|
|
disabled = python3.pythonOlder "3.7";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orf";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "01r5998gdvqjdrahpk0ci27lx9yghbddlanqcspr3qp5y5930i0s";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
aiodns
|
|
aiohttp
|
|
appdirs
|
|
click
|
|
colorama
|
|
faust-cchardet
|
|
prompt-toolkit
|
|
xpath-expressions
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "xcat" ];
|
|
|
|
meta = with lib; {
|
|
description = "XPath injection tool";
|
|
mainProgram = "xcat";
|
|
longDescription = ''
|
|
xcat is an advanced tool for exploiting XPath injection vulnerabilities,
|
|
featuring a comprehensive set of features to read the entire file being
|
|
queried as well as other files on the filesystem, environment variables
|
|
and directories.
|
|
'';
|
|
homepage = "https://github.com/orf/xcat";
|
|
changelog = "https://github.com/orf/xcat/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|