mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
xortool: modernize (#350995)
This commit is contained in:
commit
2b49bf7160
38
pkgs/by-name/xo/xortool/package.nix
Normal file
38
pkgs/by-name/xo/xortool/package.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "xortool";
|
||||
version = "1.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hellman";
|
||||
repo = "xortool";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-xxaWhGUh/r34eS2TJt8c3Q795OsZOoQLXQllJGJTjqY=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [ poetry-core ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
docopt
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "xortool" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to analyze multi-byte XOR cipher";
|
||||
homepage = "https://github.com/hellman/xortool";
|
||||
changelog = "https://github.com/hellman/xortool/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, docopt
|
||||
, fetchFromGitHub
|
||||
, importlib-metadata
|
||||
, poetry-core
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "xortool";
|
||||
version = "1.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hellman";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "19lfadi28r89bl5q8fhrxgjgs3nx3kgjd4rdg7wbvzi1cn29c5n7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [ docopt importlib-metadata ];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "xortool" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to analyze multi-byte XOR cipher";
|
||||
homepage = "https://github.com/hellman/xortool";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -38094,8 +38094,6 @@ with pkgs;
|
||||
|
||||
xboxdrv = callPackage ../misc/drivers/xboxdrv { };
|
||||
|
||||
xortool = python3Packages.callPackage ../tools/security/xortool { };
|
||||
|
||||
xorex = callPackage ../tools/security/xorex { };
|
||||
|
||||
xbps = callPackage ../tools/package-management/xbps { };
|
||||
|
Loading…
Reference in New Issue
Block a user