forked from mirrors/nixpkgs
python3.pkgs.extractcode-7z: init at 21.4.4
This commit is contained in:
parent
157f3eae60
commit
edfa120360
48
pkgs/development/python-modules/extractcode/7z.nix
Normal file
48
pkgs/development/python-modules/extractcode/7z.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, plugincode
|
||||
, p7zip
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "extractcode-7z";
|
||||
version = "21.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nexB";
|
||||
repo = "scancode-plugins";
|
||||
rev = "v${version}";
|
||||
sha256 = "xnUGDMS34iMVMGo/nZwRarGzzbj3X4Rt+YHvvKpmy6A=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/builtins/extractcode_7z-linux";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
plugincode
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
pushd src/extractcode_7z/bin
|
||||
|
||||
rm 7z 7z.so
|
||||
ln -s ${p7zip}/bin/7z 7z
|
||||
ln -s ${p7zip}/lib/p7zip/7z.so 7z.so
|
||||
|
||||
popd
|
||||
'';
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"extractcode_7z"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations";
|
||||
homepage = "https://github.com/nexB/scancode-plugins/tree/main/builtins/extractcode_7z-linux";
|
||||
license = with licenses; [ asl20 lgpl21 ];
|
||||
maintainers = teams.determinatesystems.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -2303,6 +2303,10 @@ in {
|
|||
|
||||
extractcode = callPackage ../development/python-modules/extractcode { };
|
||||
|
||||
extractcode-7z = callPackage ../development/python-modules/extractcode/7z.nix {
|
||||
inherit (pkgs) p7zip;
|
||||
};
|
||||
|
||||
extras = callPackage ../development/python-modules/extras { };
|
||||
|
||||
eyeD3 = callPackage ../development/python-modules/eyed3 { };
|
||||
|
|
Loading…
Reference in a new issue