1{ lib
2, buildPythonApplication
3, docopt
4, fetchFromGitHub
5, importlib-metadata
6, poetry-core
7}:
8
9buildPythonApplication rec {
10 pname = "xortool";
11 version = "1.0.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "hellman";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "19lfadi28r89bl5q8fhrxgjgs3nx3kgjd4rdg7wbvzi1cn29c5n7";
19 };
20
21 nativeBuildInputs = [ poetry-core ];
22
23 propagatedBuildInputs = [ docopt importlib-metadata ];
24
25 # Project has no tests
26 doCheck = false;
27 pythonImportsCheck = [ "xortool" ];
28
29 meta = with lib; {
30 description = "Tool to analyze multi-byte XOR cipher";
31 homepage = "https://github.com/hellman/xortool";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}