blob: e9e92e0564c8ff6427c95da47937386c3668bb4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
plugincode,
p7zip,
}:
buildPythonPackage rec {
pname = "extractcode-7z";
version = "21.5.31";
format = "setuptools";
src = fetchFromGitHub {
owner = "aboutcode-org";
repo = "scancode-plugins";
tag = "v${version}";
hash = "sha256-nGgFjp1N1IM/Sm4xLJw5WiZncc369/LqNcwFJBS1EQs=";
};
sourceRoot = "${src.name}/builtins/extractcode_7z-linux";
propagatedBuildInputs = [ plugincode ];
preBuild = ''
pushd src/extractcode_7z/bin
rm 7z 7z.so
ln -s ${p7zip}/bin/7z 7z
ln -s ${lib.getLib p7zip}/lib/p7zip/7z.so 7z.so
popd
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "extractcode_7z" ];
meta = {
description = "ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations";
homepage = "https://github.com/aboutcode-org/scancode-plugins/tree/main/builtins/extractcode_7z-linux";
license = with lib.licenses; [
asl20
lgpl21
];
maintainers = [ ];
platforms = lib.platforms.linux;
};
}
|