Merge pull request #219709 from dotlambda/unrpa-optional-deps

python310Packages.unrpa: specify passthru.optional-dependencies
This commit is contained in:
Fabian Affolter 2023-03-05 22:20:45 +01:00 committed by GitHub
commit dbb5af2d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -1,22 +1,34 @@
{ lib, buildPythonPackage, fetchPypi, uncompyle6, isPy27 }:
{ lib
, buildPythonPackage
, fetchPypi
, uncompyle6
, pythonOlder
}:
buildPythonPackage rec {
pname = "unrpa";
version = "2.3.0";
format = "setuptools";
disabled = isPy27;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "0yl4qdwp3in170ks98qnldqz3r2iyzil5g1775ccg98qkh95s724";
};
propagatedBuildInputs = [ uncompyle6 ];
passthru.optional-dependencies = {
ZiX = [ uncompyle6 ];
};
pythonImportsCheck = [ "unrpa" ];
# upstream has no unit tests
doCheck = false;
meta = with lib; {
homepage = "https://github.com/Lattyware/unrpa";
changelog = "https://github.com/Lattyware/unrpa/releases/tag/${version}";
description = "A program to extract files from the RPA archive format";
license = licenses.gpl3;
maintainers = with maintainers; [ leo60228 ];

View File

@ -13034,7 +13034,7 @@ with pkgs;
unrtf = callPackage ../tools/text/unrtf { };
unrpa = with python38Packages; toPythonApplication unrpa;
unrpa = with python3Packages; toPythonApplication unrpa;
untex = callPackage ../tools/text/untex { };